Skip to content

Commit

Permalink
what the fuck
Browse files Browse the repository at this point in the history
  • Loading branch information
WillNilges committed Nov 3, 2024
1 parent fbf8256 commit 39ba24e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/meshapi/tests/test_replay_join_records.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ def test_happy_replay_join_records(self, MockJoinRecordProcessorClass):
"Did not get expected street address for submitted install.",
)


class TestReplayBadJoinRecords(TestCase):
@patch("meshapi.util.join_records.JoinRecordProcessor")
def test_nj_replay_join_records(self, MockJoinRecordProcessorClass):
os.environ[JOIN_RECORD_BASE_NAME] = "mock-join-record-test"
Expand Down Expand Up @@ -144,6 +146,7 @@ def test_nj_replay_join_records(self, MockJoinRecordProcessorClass):
# Replay the records
management.call_command("replay_join_records", "--noinput")

# Ensure the entries in the bucket were mutated as expected.
records = mock_processor.get_all()
self.assertEqual(1, len(records), "Got unexpected number of records in mocked S3 bucket.")
for r in records:
Expand Down

0 comments on commit 39ba24e

Please sign in to comment.