File tree Expand file tree Collapse file tree 2 files changed +1
-20
lines changed Expand file tree Collapse file tree 2 files changed +1
-20
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ dependencies:
3636 - r-forcats
3737
3838 # Install project
39- - pip : [-e ., pdbp, kaleido] # change to kaleido ==0.1.0.post1 if errors with windows
39+ - pip : [-e ., pdbp, kaleido] # change to kaleido==0.1.0.post1 if errors with windows
4040
4141 # Extras
4242 - openpyxl # to open xlsx files
Original file line number Diff line number Diff line change 55
66from project_mbb .config import BLD
77from project_mbb .data_management .clean_labels import (
8- _concat_labels_var ,
98 _filter_labels_var ,
109 _rename_variables_eng ,
1110)
@@ -46,24 +45,6 @@ def test_labels_raw_type(labels_raw):
4645 ), f"Expected pd.DataFrame, but got { type (labels_raw )} "
4746
4847
49- def test_concat_labels_var (enusc_raw , labels_raw ):
50- data_test = _concat_labels_var (enusc_raw , labels_raw )
51-
52- assert (
53- "variable_name" in data_test .columns
54- ), "Column 'variable_name' not found in DataFrame"
55- assert "label" in data_test .columns , "Column 'label' not found in DataFrame"
56-
57- # indexes are original ones: s.t if we want to include other variables into
58- # the filtering we can continue using this test
59- assert all (
60- [
61- data_test ["variable_name" ].iloc [0 ] == "rph_ID"
62- and data_test ["label" ].iloc [0 ] == "Identificador de persona" ,
63- ]
64- )
65-
66-
6748def test_filter_labels_var (data_test ):
6849 expected = {
6950 "variable_name" : ["rph_id" , "enc_region" ],
You can’t perform that action at this time.
0 commit comments