Micah Lee
9a03f00367
Use different test string to test translations
2020-09-14 16:10:56 -07:00
Micah Lee
f89a67d91a
Merge pull request #1167 from micahflee/docs
...
OnionShare documentation website
2020-09-03 12:01:50 -07:00
Micah Lee
4c4323a772
Update Copyright to 2020 everywhere, and assign to Micah Lee, et al. instead of just Micah Lee
2020-08-27 19:13:08 -04:00
Micah Lee
6b53e3f2c5
Wait longer in GUI tabs test, and check for the precense of chat mode widget in GUI base tests
2020-08-27 17:59:00 -04:00
Micah Lee
9b78f23ca3
Skip receive mode file permission tests in Windows
2020-08-21 19:34:00 -04:00
Micah Lee
15f7d19670
Fix one more tempfile Windows test bug
2020-08-21 19:21:06 -04:00
Micah Lee
283554a655
Wait longer, and Windows tests work
2020-08-21 19:14:53 -04:00
Micah Lee
f55588c08c
In web tests, allow mime-type to be either application/zip or application/x-zip-compressed
2020-08-21 18:37:15 -04:00
Micah Lee
cf61f3ba43
Windows batch script for running tests
2020-08-21 18:34:14 -04:00
Micah Lee
c6f1eb4766
Fix more tempfile already open problems in Windows tests
2020-08-21 18:33:45 -04:00
Micah Lee
176368a22b
Close test temporary file before returning, to avoid permission denied error in windows
2020-08-21 17:38:25 -04:00
Micah Lee
b1a8c1054b
Fix settings tests for Windows
2020-08-21 16:42:20 -04:00
Micah Lee
1b9659395e
Change how TestLog works to also work in Windows
2020-08-21 16:17:37 -04:00
Micah Lee
1a6c2f3d63
Fix base GUI test to take account that the macOS version has separate Add Files and Add Folder
2020-08-20 22:53:43 -07:00
Micah Lee
9e9dfb86e3
Allow tor files to be in /usr/share or /usr/local/share in tests
2020-08-20 22:37:25 -07:00
Micah Lee
0b4821c905
Merge pull request #1139 from micahflee/910_flatpak
...
Flatpak support
2020-07-05 21:54:29 -07:00
Miguel Jacq
e68b4c674d
Add tests to make sure URL, QR Code, description etc are hidden when server stops
2020-07-06 10:37:58 +10:00
Micah Lee
17b0af98f2
Merge branch 'develop' into 910_flatpak
2020-06-30 10:56:25 -07:00
Micah Lee
8395fef887
Merge pull request #1132 from mig5/update_status_bar_on_tab_change
...
#1126 update the status bar each time the active tab is changed
2020-06-29 12:41:34 -07:00
Micah Lee
423953b3c1
Merge pull request #1128 from mig5/fail_early_on_tests.sh
...
Fail early if any of the tests fail, rather than continue and possibly exit 0
2020-06-29 12:36:26 -07:00
Micah Lee
9c70edfd12
Merge branch 'qrcode' of https://github.com/mig5/onionshare into mig5-qrcode
2020-06-29 12:25:21 -07:00
Micah Lee
f6ea6e4a1d
Fix tests
2020-06-28 13:01:23 -07:00
Miguel Jacq
37cab50464
Use 'Delete' rather than 'Clear' when talking about removing file items from the FileList, since we have a Delete button for individual files
2020-06-08 09:48:00 +10:00
Miguel Jacq
39f20874f2
#1126 update the status bar each time the active tab is changed
2020-06-07 15:07:28 +10:00
Miguel Jacq
5b78242606
Fail early if any of the tests fail, rather than continue and possibly exit 0
2020-05-31 20:26:07 +10:00
Miguel Jacq
4cf508ed8e
#1115 Add QR Code for onion URL
2020-05-31 17:44:57 +10:00
Miguel Jacq
327747fa3f
Change code doc from 'Delete All' to 'Clear All' and remove whitespace in test
2020-05-27 12:59:13 +10:00
Miguel Jacq
1632a00a91
#1116 Add a Clear All button in the File List area for share modes
2020-05-27 12:56:33 +10:00
Micah Lee
40b43b66ab
Fix common.get_tor_paths test
2020-04-06 21:19:17 -07:00
Micah Lee
72d79cdfe5
Revert "Enable stacktraces of segfaults when running tests"
...
This reverts commit 145021b2e5
.
2020-04-01 17:59:08 -07:00
Saptak S
d417754e45
Adds bash script to run GUI tests individually
2020-04-02 04:19:50 +05:30
Micah Lee
145021b2e5
Enable stacktraces of segfaults when running tests
2020-03-29 13:55:29 -07:00
Micah Lee
fc0dbd153f
Merge branch 'fix_tests' into 1064_tabs
2020-03-22 17:20:17 -07:00
Micah Lee
290e6f5e72
Add a pytest.ini file to register custom markers, to avoid so many test warnings
2020-03-22 17:08:41 -07:00
Miguel Jacq
8322875de6
Raising qWaits slightly
2019-11-11 18:08:01 +11:00
Miguel Jacq
2b85129b29
Add accept dialogs into the ratelimit tests, it seems to help
2019-11-11 17:58:40 +11:00
Miguel Jacq
a51fd596fe
Fix TypeError: start_onion_service() takes from 1 to 3 positional arguments but 4 were given
2019-11-11 17:47:03 +11:00
Micah Lee
81584e12ff
Try increasing waits more
2019-11-10 14:41:08 -08:00
Micah Lee
6df5ab75f6
Add some waits so the tests will pass consistently
2019-11-10 14:22:00 -08:00
Micah Lee
16245d33e3
Delete the old tests and replace them with the new tests
2019-11-10 13:55:15 -08:00
Micah Lee
70f8e4384d
Fix settings test, now that we added the persistent_tabs setting
2019-11-02 23:36:37 -07:00
Micah Lee
b815b0e9e2
Remove mode settings from global settings object
2019-11-02 17:06:13 -07:00
Micah Lee
87918c5d89
Fix CLI tests, and also fix bug related to autostop_sharing that the tests found
2019-11-02 17:01:47 -07:00
Micah Lee
4f2ce99417
Rename OnionShareGui to MainWindow
2019-10-20 19:41:20 -07:00
Micah Lee
098625621c
Replace .format with python 3.6 f-strings in tests
2019-10-20 10:46:14 -07:00
Christian Clauss
f54cd86b65
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
3037727890
Format all code using black
2019-10-12 21:01:25 -07:00
Miguel Jacq
d8c0bc4e4f
Invert the CSP header setting and put it in its own Website Mode settings group. Make the CSP header mandatory for share/receive modes, optional for website mode only.
2019-09-22 16:49:31 +10:00
Miguel Jacq
2524ddaf94
Make setting the Content-Security-Policy header optional so it doesn't break website mode shares
2019-09-16 12:10:17 +10:00
Miguel Jacq
90ebc3aab4
Fix the discrepancy between SendBaseModeWeb and Web objects' separate cur_history_id attibutes, ensuring that when we call web.error404() we send a new history_id integer for communicating back to the frontend. Add tests for this
2019-09-09 16:35:05 +10:00