Skip to content

Commit

Permalink
tests/test_stages.py: Improve test_json_zip test
Browse files Browse the repository at this point in the history
  • Loading branch information
Ed (ODSC) committed Oct 11, 2023
1 parent 373a8fd commit d5a500c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_stages.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,14 @@ def test_json_zip(self, temp_dir, output_dir, source_dir):
data = output_file.readlines()
print(data)
assert len(data) == 20
count = 0
for d in data:
json_data = json.loads(d.strip())
if json_data["statementID"] == "8359172029532323967":
count += 1
print(json_data)
assert json_data['interestedParty']['describedByPersonStatement'] == '14105856581894595060'
assert count == 2

def test_sqlite_zip(self, temp_dir, output_dir, source_dir):
"""Test creation of output sqlite.db.gz file"""
Expand Down

0 comments on commit d5a500c

Please sign in to comment.