Skip to content

Commit 8f28601

Browse files
Solve test problem.
1 parent 12ed12a commit 8f28601

File tree

2 files changed

+1
-20
lines changed

2 files changed

+1
-20
lines changed

environment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

tests/data_management/test_data_mgt_labels.py

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
from project_mbb.config import BLD
77
from 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-
6748
def test_filter_labels_var(data_test):
6849
expected = {
6950
"variable_name": ["rph_id", "enc_region"],

0 commit comments

Comments
 (0)