Commit Graph

49 Commits

Author SHA1 Message Date
Micah Lee
21e1dac2c3
Rename test files to have test_ prefix 2017-11-20 15:52:33 -08:00
Delirious Lettuce
e54d6b8648 Remove unnecessary imports, add tests 2017-07-08 11:31:25 -06:00
Delirious Lettuce
5b08372b72 Modify import (more direct), remove unnecessary parentheses 2017-07-08 11:30:26 -06:00
Delirious Lettuce
5132ef8b4f fixture instead of yield_fixture (2), remove parentheses 2017-07-08 11:29:19 -06:00
Delirious Lettuce
711ae30ba9 Initial commit, coverage of onionshare.settings.py at 92% 2017-07-08 11:23:17 -06:00
Delirious Lettuce
27b917e9e5 Add locale fixtures 2017-07-08 00:17:20 -06:00
Delirious Lettuce
99bc9ea25b Create temporary file/directory without deleting them after 2017-07-07 23:16:37 -06:00
Delirious Lettuce
cf05204e65 Add cleanup tests 2017-07-07 23:14:47 -06:00
Delirious Lettuce
17f301022b Initial commit (all current pytest fixtures) 2017-07-07 22:51:09 -06:00
Delirious Lettuce
69d1434f35 Move fixtures to conftest, remove unneeded imports, spacing 2017-07-07 22:50:11 -06:00
Delirious Lettuce
4f395add0a * Use re.verbose on LOG_MSG_REGEX
* Create new fixtures for creating temporary files and directories
* Modify custom_zw fixture to include custom callback function to test
* Delete parent directory of ZipWriter file from default_zw fixture
* Modify monkeypatch arguments
* Group tests into separate classes for each function
* Parametrize ZeroDivisionError tests
* Test all regular expressions
* Use new fixtures to ensure proper deletion of files after testing
2017-07-07 21:33:45 -06:00
Delirious Lettuce
d23c190cdc Add conftest.py file 2017-07-07 14:26:19 -06:00
Delirious Lettuce
29f15fb9a5 initial commit of onionshare_test.py mods 2017-07-05 14:44:27 -06:00
Delirious Lettuce
50652aa74b WIP: up to 100% test coverage of common.py 2017-07-04 23:17:51 -06:00
Delirious Lettuce
f7228f7952 Remove test (ZipInfo.is_dir() is Python 3.6+ only) 2017-07-04 12:24:38 -06:00
Delirious Lettuce
348c1889ae Initial commit of previous changes, add coverage to travis 2017-07-04 12:24:38 -06:00
Micah Lee
1591888863
Renamed onionshare.helpers module to onionshare.common 2017-05-16 11:05:48 -07:00
Micah Lee
adc450c971
Move choose_port tests into helpers tests, and delete the obsolete onionshare tests. (I really need to write more tests...) 2017-04-19 09:06:54 -07:00
Micah Lee
304e6db4a5
Fix path in test 2017-02-21 17:14:53 -08:00
Micah Lee
f8005a63ea
Change GPL copyright from 2016 to 2017 2017-01-06 18:58:15 -08:00
Micah Lee
115345477a
Make sure tests can find the correct paths (fixes #284) 2016-09-05 10:41:20 -07:00
Micah Lee
22f104cf65
Fix strings tests, now that load_strings needs helpers as an arg 2016-09-04 20:02:20 -07:00
jvoisin
17e389b800 Improve pep8 conformance 2016-04-18 01:40:17 +02:00
Micah Lee
f2c4591c1e Deleted obsolete slug tests 2016-04-12 17:53:19 -07:00
Micah Lee
e8ce6b1c54 Make helpers.get_pyinstaller_resource_path work when package is not frozen, and make tests report real platform to get accurate paths 2016-04-12 10:43:28 -07:00
Micah Lee
683610e962 Update copyright year to 2016 2016-02-15 22:37:28 -08:00
Micah Lee
f864e85ee3 Ported tests to python3 (#261) 2016-02-15 11:00:41 -08:00
Micah Lee
bbee1599c5 Updated copyright year to 2015 2015-09-07 21:48:49 -07:00
Micah Lee
5d37d9b7b2 Removed all of the Tails-specific code. If we use ephemeral hidden services, we no longer need to touch the filesystem, and hopefully no longer need root in Tails. 2015-09-07 21:44:29 -07:00
Thomas Waldmann
b7a0293470 pep8: remove empty lines at EOF 2014-11-18 19:03:31 +01:00
Thomas Waldmann
087102bde4 pep8: too long lines, reformat lines to < 120 chars. removed redundancy from long_description in setup.py.
note: pep8 usually recommends 80 chars, but I find that impractical and unnecessary - it's not 1980 any more when code was edited on 80x25 terminals.

i was a bit wondering about onionshare-launcher.py - it does a lot of imports, but does not use the imported names.
2014-11-18 18:59:48 +01:00
Thomas Waldmann
179eefae29 pep8: fix empty line counts
top level: 2, else 1

I also advice to not put "pass" into empty classes, but rather a docstring instead of "pass".
2014-11-18 18:29:32 +01:00
Thomas Waldmann
5deb3f9e0f pep8: fix indentation to be a multiple of four
note: i used pycharm "reformat file", so there are other reformattings also
2014-11-18 18:03:34 +01:00
Thomas Waldmann
d51f762ddd pep8: use triple double-quotes for docstrings 2014-11-18 17:39:04 +01:00
Thomas Waldmann
46492e0446 fix typos 2014-10-26 14:40:41 +01:00
Micah Lee
c159ef671d removed unused strings 2014-09-18 00:26:22 +00:00
Micah Lee
e4f0e5e8b3 fixed test_load_strings_loads_other_languages, because french strings were updated 2014-09-02 17:26:59 -07:00
Micah Lee
3ce43a65b6 Merge pull request #120 from r4v5/fix-travis
Fix the travis build
2014-09-02 17:12:05 -07:00
Micah Lee
a6e99fcc21 added GPLv3 license to each source file 2014-09-02 12:10:42 -07:00
Mason Donahue
15a917c60e Test fix: OnionShare object doesn't have a port until we tell it to get one. 2014-08-31 15:06:12 -05:00
Micah Lee
3f59fe7af0 deleted file_crunching tests 2014-08-27 13:55:44 -07:00
Micah Lee
a32ca2f7a9 split tests into multiple files, and fixed tests to work with refactor 2014-08-26 18:38:46 -07:00
Mason Donahue
925316339c The code for Tails's firewall-punching was refactored without updating the tests. This updates the tests. 2014-08-23 16:57:28 -05:00
Micah Lee
4ac7111011 switch random strings from hex-encoded to base32-encoded 2014-06-23 16:15:02 -04:00
Micah Lee
e00a888b9d randomize the name of hidden service directories (fixes #28) 2014-06-20 20:45:31 -04:00
Micah Lee
6699a6285c removed test_tails_appends_to_path because that no longer happens. changed test_get_platform_returns_env_var to test_get_platform_on_tails, because now it checks platform.uname() 2014-06-10 18:47:55 -04:00
Connor Mendenhall
d64af1673a Add unit tests: file stats and port selection. 2014-06-02 22:47:11 -05:00
Connor Mendenhall
47ba6043ce Add more unit tests. 2014-05-30 22:06:08 -05:00
Connor Mendenhall
3a3b8fb21d Start adding nose tests. 2014-05-30 19:55:28 -05:00