Commit Graph

15 Commits

Author SHA1 Message Date
Gergely Polonkai 029d29ffb1 Make it possible to set the instance admin 2018-07-25 21:03:34 +02:00
Gergely Polonkai 4b1fff6544 Add the AppState model
This allows setting application state during run time
2018-07-25 20:27:13 +02:00
Gergely Polonkai bc67e692e0 [Refactor] Move test fixtures to conftest.py
…so they get automatically loaded
2018-07-25 20:25:12 +02:00
Gergely Polonkai c40e776036 Fully cover the Gregorian Calendar with tests
Being one of the cornerstones right now, it deserves a lot of tests
2018-07-24 08:28:04 +02:00
Gergely Polonkai 3deaa39256 [Test] Add test for disabled registration 2018-07-23 13:22:50 +02:00
Gergely Polonkai c20b302458 Add the alter_config context manager for testing
It can temporarily change an app configuration value.
2018-07-23 13:22:50 +02:00
Gergely Polonkai 11bd30e01f [Bugfix] Fix broken tests 2018-07-23 13:04:04 +02:00
Gergely Polonkai 61f10f951c Make it possible to lock profiles
Locked profiles cannot be followed
2018-07-12 12:10:53 +02:00
Gergely Polonkai 36c2f0fd77 Add test for following a user through the web UI 2018-07-12 10:34:59 +02:00
Gergely Polonkai 27c78ff36f Create the Profile.follow() method 2018-07-12 10:34:59 +02:00
Gergely Polonkai 37e08fed22 Add tests for logging in 2018-07-12 10:34:57 +02:00
Gergely Polonkai a0fba3f2af Move registration related tests to a separate file 2018-07-12 10:32:16 +02:00
Gergely Polonkai 48a19a2296 Update tests
Move the `client` fixture to the helpers module, as it will be used by many other test cases.

Add the AGPL header to the test files.
2018-07-12 10:28:59 +02:00
Gergely Polonkai f782ece010 Add tests for registration 2018-07-10 15:34:52 +02:00
Gergely Polonkai 0595a28535 Add the first test
It just checks if the index page has a specific sentence.  But at least it’s now possible to
create tests.
2018-07-10 12:10:24 +02:00