Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Casyfill committed Mar 15, 2023
1 parent d986709 commit e597f74
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def _get_schemas_v1(name):
schema_files = list((test_dir / name).glob("*.json"))
assert len(schema_files) > 0, f"No schema files found in {test_dir / name}"
schemas = []

for file in schema_files:
try:
schemas.append({"name": file.stem, "schema": json.loads(file.read_text())})
Expand Down
8 changes: 4 additions & 4 deletions tests/test_v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ def test_validate_df_v1_invalid(bad_schema_v1):

def test_schema_objects(good_schema_v1: dict):
from dfschema.core.core import DfSchema

S = DfSchema.from_dict(good_schema_v1["schema"])
if good_schema_v1['name'] == 'sales_certainty_inference':
if good_schema_v1["name"] == "sales_certainty_inference":
new = S.dict()
model_col = [c for c in new['columns'] if c['name'] == 'model'][0]
assert model_col.get('categorical', {}).get('mode') == 'exact_set'
model_col = [c for c in new["columns"] if c["name"] == "model"][0]
assert model_col.get("categorical", {}).get("mode") == "exact_set"

0 comments on commit e597f74

Please sign in to comment.