10 Commits

Author SHA1 Message Date
Micah Lee
58ad7907fd Replace .format with python 3.6 f-strings in tests 2019-10-20 10:46:14 -07:00
Christian Clauss
5fccd41094 Use ==/!= to compare str, bytes, and int literals
https://docs.python.org/3/whatsnew/3.8.html#changes-in-python-behavior

The compiler now produces a SyntaxWarning when identity checks (is and is not) are used with certain types of literals (e.g. strings, numbers). These can often work by accident in CPython, but are not guaranteed by the language spec. The warning advises users to use equality tests (== and !=) instead.
2019-10-19 22:36:32 +02:00
Micah Lee
88e151d414 Format all code using black 2019-10-12 21:01:25 -07:00
Micah Lee
7e5bcf8662 Fix web tests to use basic auth and passwords instead of slugs 2019-05-23 09:53:18 -07:00
Micah Lee
cec63daf3a Rename slugs to passwords in the tests 2019-05-22 20:55:31 -07:00
Miguel Jacq
74e44f71b7 Use a custom Settings object in test_onionshare_web.py, rather than potentially load non-ephemeral settings 2019-02-26 11:10:09 +11:00
Miguel Jacq
1b670898a0 Merge develop branch and fix conflicts 2018-11-13 14:45:40 +11:00
Miguel Jacq
e3459a5136 Move GUI tests into tests/ dir and fix conftest related stuff so everything loads what it needs and passes 2018-10-13 10:35:09 +11:00
Miguel Jacq
d69bba4c9d Merge develop in and fix upload/timer functionality so that it works as described. Still needs fixing to not throw a connection error to the lucky last uploader after their upload completes and server stops due to expiry having passed 2018-10-01 16:42:54 +10:00
Miguel Jacq
f6fafc0f5b Rename test dir to tests. Rename unit_tests to tests_gui_local. Add test dependencies. Update various paths. Add GUI unit tests docs to BUILD.md 2018-09-27 15:54:46 +10:00