mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-07-26 01:31:17 -07:00
Cleanup source tests (#1912)
* Move test to base for broader coverage (#1848) * Remove duplicate line (#1848) * FUDS needed an extra mock (#1848)
This commit is contained in:
parent
f70f30d610
commit
d8dd4cf047
5 changed files with 24 additions and 13 deletions
|
@ -209,6 +209,16 @@ class TestETL:
|
|||
|
||||
assert actual_file_path == expected_file_path
|
||||
|
||||
def test_tract_id_lengths(self, mock_etl, mock_paths):
|
||||
etl = self._setup_etl_instance_and_run_extract(
|
||||
mock_etl=mock_etl, mock_paths=mock_paths
|
||||
)
|
||||
etl.transform()
|
||||
etl.validate()
|
||||
etl.load()
|
||||
df = etl.get_data_frame()
|
||||
assert (df[etl.GEOID_TRACT_FIELD_NAME].str.len() == 11).all()
|
||||
|
||||
def test_fixtures_contain_shared_tract_ids_base(self, mock_etl, mock_paths):
|
||||
"""Check presence of necessary shared tract IDs.
|
||||
Note: We used shared census tract IDs so that later our tests can join all the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue