File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3232response = httpx .post ('https://census-project-xki0.onrender.com/predict/' ,
3333 json = sample )
3434print (f'response status code: { response .status_code } ' )
35- print (f'response content:\n { response .content } ' )
35+ print (f'response content:\n { response .content } ' )
Original file line number Diff line number Diff line change @@ -46,11 +46,11 @@ def raw_test_data() -> pd.DataFrame:
4646
4747 Returns:
4848 Subset dataframe with 1500 rows loaded from original csv file
49- """
49+ """
5050 try :
5151 # data = './df_test_1500raw.csv'
5252 ROOT = os .getcwd ()
53- filepath = os .path .join (ROOT , config_file ['etl' ]['test_data_orig_census' ])
53+ filepath = os .path .join (ROOT , config_file ['etl' ]['test_data_orig_census' ])
5454 return pd .read_csv (filepath )
5555 except Exception as e :
5656 pytest .fail (f"Fixture with 1500 orig rows: exc: { e } " )
@@ -67,7 +67,7 @@ def cleaned_test_data() -> pd.DataFrame:
6767 try :
6868 # data = './df_test_1500raw.csv'
6969 ROOT = os .getcwd ()
70- filepath = os .path .join (ROOT , config_file ['etl' ]['test_data_orig_census' ])
70+ filepath = os .path .join (ROOT , config_file ['etl' ]['test_data_orig_census' ])
7171 return clean_data (pd .read_csv (filepath )[:200 ], config_file )
7272 except Exception as e :
7373 pytest .fail (f"Fixture with 200 cleaned rows: exc: { e } " )
You can’t perform that action at this time.
0 commit comments