Skip to content

Commit

Permalink
Remove conftest for unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jacebrowning committed Jan 11, 2019
1 parent 6a26aa6 commit 87c2281
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 23 deletions.
19 changes: 0 additions & 19 deletions datafiles/tests/conftest.py

This file was deleted.

6 changes: 2 additions & 4 deletions datafiles/tests/test_converters.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,9 @@ def when_invalid(expect):
with expect.raises(ValueError, message):
converters.Integer.to_python_value('a')

def when_list_of_dataclasses(logbreak, expect):
def when_list_of_dataclasses(expect):
converter = converters.map_type(List[MyDataclass])

logbreak()
data = [{'foobar': 1}, {'foobar': 2}, {'foobar': 3}]
value = [MyDataclass(1), MyDataclass(2), MyDataclass(3)]

Expand Down Expand Up @@ -213,10 +212,9 @@ def when_invalid(expect):
with expect.raises(ValueError, message):
converters.Integer.to_preserialization_data('a')

def when_list_of_dataclasses(logbreak, expect):
def when_list_of_dataclasses(expect):
converter = converters.map_type(List[MyDataclass])

logbreak()
value = [MyDataclass(1), MyDataclass(2), MyDataclass(3)]
data = [
{'foobar': 1, 'flag': False},
Expand Down

0 comments on commit 87c2281

Please sign in to comment.