Skip to content

Commit

Permalink
fix: make linter happy (#67)
Browse files Browse the repository at this point in the history
closes #66
  • Loading branch information
lchen-2101 authored Nov 8, 2023
1 parent 3384ef2 commit 2139867
Showing 1 changed file with 14 additions and 20 deletions.
34 changes: 14 additions & 20 deletions tests/test_schema_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,13 +135,11 @@ def test_with_invalid_dataframe(self):

def test_with_multi_invalid_dataframe(self):
df = pd.DataFrame(
data=self.util.get_data(
{
"ct_credit_product": ["989"],
"num_principal_owners": ["1"],
"action_taken": ["2"],
}
)
data=self.util.get_data({
"ct_credit_product": ["989"],
"num_principal_owners": ["1"],
"action_taken": ["2"],
})
)
p1_is_valid, p1_findings_df = validate(self.phase1_schema, df)
assert not p1_is_valid
Expand Down Expand Up @@ -195,13 +193,11 @@ def test_with_invalid_data(self):
def test_with_multi_invalid_data_with_phase1(self):
is_valid, findings_df = validate_phases(
pd.DataFrame(
data=self.util.get_data(
{
"ct_credit_product": ["989"],
"num_principal_owners": ["1"],
"action_taken": ["2"],
}
)
data=self.util.get_data({
"ct_credit_product": ["989"],
"num_principal_owners": ["1"],
"action_taken": ["2"],
})
)
)

Expand All @@ -212,12 +208,10 @@ def test_with_multi_invalid_data_with_phase1(self):
def test_with_multi_invalid_data_with_phase2(self):
is_valid, findings_df = validate_phases(
pd.DataFrame(
data=self.util.get_data(
{
"num_principal_owners": ["1"],
"action_taken": ["2"],
}
)
data=self.util.get_data({
"num_principal_owners": ["1"],
"action_taken": ["2"],
})
),
)
# since the data passed phase 1 validations
Expand Down

0 comments on commit 2139867

Please sign in to comment.