Stark-Mountain / meetup-facebook-bot

An easy-to-setup bot that helps you to communicate with your meetup attendees.
MIT License
1 stars 1 forks source link

Add factory for tests #27

Open voron434 opened 7 years ago

voron434 commented 7 years ago

Use factory_boy if it is not only for jango in another module for testing

voron434 commented 7 years ago

guess that after tests refactoring we don't need this any more.

vergeev commented 7 years ago

@voron434, no. One still can find places where to utilize factoryboy. Example 1, example 2, example 3. Also, if you do that, everyone will have to do that in the new tests too. This is a nice thing to have.

vergeev commented 7 years ago

Factory boy is a module for Django, it won't work with Flask. One should find a replacement first.

Also, it's not that important.

vergeev commented 7 years ago

Faker seems a good replacement for it: https://pypi.python.org/pypi/Faker