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."""
3
2
from itertools import product
4
3
from os import listdir
5
4
from os .path import join
6
5
7
6
import pandas as pd
8
- from delphi_usafacts .run import run_module
9
7
10
8
11
9
class TestRun :
10
+ """Tests for the `run_module()` function."""
12
11
def test_output_files_exist (self , run_as_module ):
13
-
12
+ """Test that the expected output files exist."""
14
13
csv_files = [f for f in listdir ("receiving" ) if f .endswith (".csv" )]
15
14
16
15
dates = [
@@ -45,7 +44,7 @@ def test_output_files_exist(self, run_as_module):
45
44
assert set (csv_files ) == set (expected_files )
46
45
47
46
def test_output_file_format (self , run_as_module ):
48
-
47
+ """Test that the output files have the proper format."""
49
48
df = pd .read_csv (
50
49
join ("receiving" , "20200310_state_confirmed_cumulative_num.csv" )
51
50
)
You can’t perform that action at this time.
0 commit comments