Skip to content

Commit 7da92e2

Browse files
committed
formatting: Reformat with black
1 parent 78e44e4 commit 7da92e2

29 files changed

+1142
-1155
lines changed

conftest.py

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,23 @@
99

1010
@pytest.fixture
1111
def markdown_examples():
12-
md = pkg_resources.resource_filename('python_jsonschema_objects.examples', 'README.md')
12+
md = pkg_resources.resource_filename(
13+
"python_jsonschema_objects.examples", "README.md"
14+
)
1315
examples = python_jsonschema_objects.markdown_support.extract_code_blocks(md)
14-
examples = {json.loads(v)['title']: json.loads(v) for v in examples['schema']}
16+
examples = {json.loads(v)["title"]: json.loads(v) for v in examples["schema"]}
1517
return examples
1618

1719

1820
@pytest.fixture(autouse=True)
1921
def inject_examples(doctest_namespace, markdown_examples):
20-
doctest_namespace['examples'] = markdown_examples
22+
doctest_namespace["examples"] = markdown_examples
2123

2224

2325
@pytest.fixture
2426
def Person(markdown_examples):
25-
builder = pjs.ObjectBuilder(markdown_examples['Example Schema'], resolved=markdown_examples)
27+
builder = pjs.ObjectBuilder(
28+
markdown_examples["Example Schema"], resolved=markdown_examples
29+
)
2630
assert builder
27-
return builder.classes['ExampleSchema']
28-
31+
return builder.classes["ExampleSchema"]

0 commit comments

Comments
 (0)