chore(pytest): rename pytest_configure -> pytest_report_header

ref: #770
This commit is contained in:
2025-05-24 00:21:27 +09:30
parent 06ad1fec5e
commit 3e6d9233ca

View File

@ -40,12 +40,10 @@ def load_sqlite_fixture(django_db_setup, django_db_blocker):
def pytest_configure(config):
def pytest_report_header(config):
print("\n--- Pytest Launch Arguments ---")
print(f"Command-line arguments: {config.invocation_params.args}")
print(f"Config file options: {config.getini('addopts')}")
print("\n-------------------------------")
def pytest_pycollect_makeitem(collector, name, obj):
@ -530,7 +528,10 @@ def organization_one(django_db_blocker):
with django_db_blocker.unblock():
item.delete()
try:
item.delete()
except:
pass