Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions tdrs-backend/tdpservice/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,12 @@ def system_user():
register(OwaspZapScanFactory)


@pytest.fixture(autouse=True)
def disable_keycloak_sync(settings):
"""Keep tests from making live Keycloak calls unless explicitly enabled."""
settings.KEYCLOAK_SYNC_ENABLED = False


@pytest.fixture(autouse=True)
def change_test_dir(monkeypatch, tmp_path):
"""Change the working directory to a temporary directory for all tests."""
Expand Down
1 change: 0 additions & 1 deletion tdrs-backend/tdpservice/core/test/test_admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ def test_user_change_request_approve(self):
requested_value="NewAdmin",
status=UserChangeRequestStatus.PENDING,
)
print(f"Change Request ID: {change_request.id}")
# Approve the change request
response = client.post(
f"/admin/users/userchangerequest/{change_request.id}/approve/"
Expand Down
12 changes: 6 additions & 6 deletions tdrs-backend/tdpservice/parsers/test/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,7 @@ def tribal_section_1_inconsistency_file(stt_user, stt):
stt,
"Active Case Data",
DataFile.ProgramType.TRIBAL,
year=2020,
)


Expand Down Expand Up @@ -371,7 +372,7 @@ def tanf_section_4_file_with_errors(stt_user, stt):
stt_user,
stt,
"Stratum Data",
DataFile.ProgramType.TRIBAL,
DataFile.ProgramType.TANF,
year=2022,
)

Expand Down Expand Up @@ -650,10 +651,9 @@ def m3_go_cat2_invalid_68_69_file():
program_type=DataFile.ProgramType.SSP,
file__data=(
b"HEADER20234A24 SSP1ED\n"
b"M12023101111111112721401400351021331100273000000000000000105400000000000000000000000000000000"
b"00222222000000002229 \n"
b"M320231011111111127120110615WTTTP99B#222122222043011000000004201001013333333330000000110000009999"
b"8888\n"
b"M120231011111111127214014003510213311002730000000000000001054"
b"0000000000000000000000000000000000222222000000002229 \n"
b"M320231011111111127120110615WTTTP99B#2221222220430010000000042010010133333333300000001100000099998888\n"
b"TRAILER0000002 "
),
)
Expand Down Expand Up @@ -796,7 +796,7 @@ def tanf_s4_exact_dup_file():
section="Stratum Data",
file__name="s4_exact_duplicate.txt",
file__section="Stratum Data",
program_type=DataFile.ProgramType.SSP,
program_type=DataFile.ProgramType.TANF,
file__data=(
b"HEADER20214S06 TAN1 D\n"
b"T720214101006853700680540068454103000312400037850003180104000347400036460003583106"
Expand Down
Loading
Loading