-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set up unit tests #110
Comments
Look into flask docs |
some notes:
|
I think the original goal was to pair for an hour or so to establish a unit test pattern that could be continued going forward. I think we have a few working tests and can consider that objective closed. But I think we need a new ticket to set up a pattern for doing tests that require DB mocks, which I think we can use our new SQLite functionality for. We can create fixtures that initialize the database like we do with What do you think?
We can override that environment variable for certain tests to require login when that's what we want to test! Testing "logged out" I think is a good case for that because we don't need to involve Google. |
We'd like to be able to test that, for example, a page correctly renders a survey or response's attributes. We recently changed a
name
field toshort_name
, and this required manual testing to ensure all the forms continued to work properly.Should we enable jinja's strict mode always, or just for these tests to help us find such errors?
We discussed and decided we'd like to spend an hour pairing on this.
The text was updated successfully, but these errors were encountered: