File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 1- import pytest
2-
1+ """Tests for running the USAFacts indicator."""
32from itertools import product
43from os import listdir
54from os .path import join
65
76import pandas as pd
8- from delphi_usafacts .run import run_module
97
108
119class TestRun :
10+ """Tests for the `run_module()` function."""
1211 def test_output_files_exist (self , run_as_module ):
13-
12+ """Test that the expected output files exist."""
1413 csv_files = [f for f in listdir ("receiving" ) if f .endswith (".csv" )]
1514
1615 dates = [
@@ -45,7 +44,7 @@ def test_output_files_exist(self, run_as_module):
4544 assert set (csv_files ) == set (expected_files )
4645
4746 def test_output_file_format (self , run_as_module ):
48-
47+ """Test that the output files have the proper format."""
4948 df = pd .read_csv (
5049 join ("receiving" , "20200310_state_confirmed_cumulative_num.csv" )
5150 )
You can’t perform that action at this time.
0 commit comments