Skip to content

Commit

Permalink
Fix unrelated stuff from flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
anapaulagomes committed Oct 25, 2019
1 parent f824c7d commit 412bba8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_baker.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,14 +322,14 @@ def test_m2m_changed(*args, **kwargs):
def test_simple_creating_person_with_parameters(self):
kid = baker.make(models.Person, happy=True, age=10, name='Mike')
assert kid.age == 10
assert kid.happy == True
assert kid.happy is True
assert kid.name == 'Mike'

def test_creating_person_from_factory_using_paramters(self):
person_baker_ = baker.Baker(models.Person)
person = person_baker_.make(happy=False, age=20, gender='M', name='John')
assert person.age == 20
assert person.happy == False
assert person.happy is False
assert person.name == 'John'
assert person.gender == 'M'

Expand Down Expand Up @@ -480,7 +480,7 @@ def test_fill_field_optional(self):

def test_fill_wrong_field(self):
with pytest.raises(AttributeError) as exc_info:
baker.make(models.DummyBlankFieldsModel,_fill_optional=['blank_char_field', 'wrong'])
baker.make(models.DummyBlankFieldsModel, _fill_optional=['blank_char_field', 'wrong'])

msg = "_fill_optional field(s) ['wrong'] are not related to model DummyBlankFieldsModel"
assert msg in str(exc_info.value)
Expand Down

0 comments on commit 412bba8

Please sign in to comment.