Itamar Turner-Trauring
81ba354357
Merge remote-tracking branch 'origin/master' into 3373.happinessutil-python-3
2020-08-17 10:45:12 -04:00
Itamar Turner-Trauring
8167e85f7b
Fix flake8 with __all__.
2020-08-13 15:11:14 -04:00
Itamar Turner-Trauring
cdccb93179
Flake fixes.
2020-08-12 15:52:12 -04:00
Itamar Turner-Trauring
e13c0cf4d3
Reorganize imports to make Python 3 support easier.
2020-08-12 10:23:30 -04:00
Itamar Turner-Trauring
44143d1b08
Move tests for happinessutil.py into test_happiness.py.
2020-08-07 11:37:44 -04:00
Maciej Fijalkowski
bf37413e05
address the review (mostly)
2020-08-02 11:16:18 +02:00
Jean-Paul Calderone
27b6737eaf
Merge remote-tracking branch 'origin/master' into 3358.fileutil-to-python-3
...
with fijal
2020-07-30 13:38:47 -04:00
Maciej Fijalkowski
7618b295cb
Revert "merge master (I think properly)"
...
This reverts commit 6140b5ff52aea8905500e54aa0c8e7cef5a4fe80, reversing
changes made to da87bd7e7fadab6f4c4a1459482864e98e2dc92f.
2020-07-30 09:29:20 +02:00
Maciej Fijalkowski
6140b5ff52
merge master (I think properly)
2020-07-29 21:09:23 +02:00
Maciej Fijalkowski
93c474c39b
make test_util pass under both pythons
2020-07-29 09:00:50 +02:00
Itamar Turner-Trauring
d91b4f0e40
Fix some tests and flake issues.
2020-07-27 15:12:09 -04:00
Maciej Fijalkowski
13e292295e
Revert "futurize and make the tests pass back under py2"
...
This reverts commit 361de059800a5f150775340dee273bde8e3ce11e.
2020-07-25 11:22:03 +02:00
Maciej Fijalkowski
361de05980
futurize and make the tests pass back under py2
2020-07-25 11:12:43 +02:00
Itamar Turner-Trauring
bf13401979
Move SignalMixin to common_py3.py.
2020-07-24 14:58:08 -04:00
Itamar Turner-Trauring
6de05941b9
Remove unnecessary imports.
2020-07-21 14:27:08 -04:00
Itamar Turner-Trauring
e90d1f38d2
Make TimezoneMixin importable on Python 3.
2020-07-16 15:44:41 -04:00
Itamar Turner-Trauring
e108ecb4b0
Fix lint.
2020-07-09 13:56:25 -04:00
Itamar Turner-Trauring
af86066eab
Delete some dead code.
2020-07-09 13:52:06 -04:00
Jean-Paul Calderone
9c1250364f
Remove the cleanup too
2020-01-13 15:34:30 -05:00
Jean-Paul Calderone
4ae6cc9775
Remove it
2020-01-13 15:29:27 -05:00
tpltnt
c8f11dc2d3
ported old-style classes to new-style
2019-05-26 08:28:18 +02:00
heartsucker
df9243a3f4
updated test code to use print function over print statement
2019-03-22 17:32:36 +01:00
Jean-Paul Calderone
8593bf1b1c
Make helper method compatible with other unittests
...
The msg keyword argument is overly precise. testtools reasonably calls it
`message` instead.
2019-03-07 18:38:52 -05:00
Jean-Paul Calderone
afe97fdd8c
Fix TestMixin
2019-03-07 18:25:31 -05:00
Jean-Paul Calderone
e26895b149
Fix SignalMixin
2019-03-07 18:25:16 -05:00
Brian Warner
ce473bd5f4
cli.test_alias: move skip-unless utility to common_util.py
...
next to the other skip-unless function
2018-03-28 15:30:24 -07:00
meejah
4f1dd95963
Add a 'tahoe status' command
...
This required also fixing the JSON output from
the "recent and active operations" page.
2017-04-04 12:48:41 -06:00
Daira Hopwood
4d18425ed4
Fix for Magic Folder tests if the I/O encoding is borked on Unicode platforms (OS X, Windows).
...
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2016-09-27 18:05:09 +01:00
Brian Warner
802cfc87fe
CLI: allow dispatch functions to return Deferred
...
In addition, CLI functions are allowed to use sys.exit() instead of
always needing to return the exit code as an integer.
runner.py now knows about the blocking httplib calls in scripts/cli and
scripts/magic_folder, and uses deferToThread() to invoke them. Those
functions cannot return a Deferred: when rewrite them to use twisted.web
or treq, we'll remove this deferToThread call.
Option parsing was split out to a separate function for testing. We now
use twisted.internet.task.react() to start the reactor, which required
changing the way runner.py is tested.
closes ticket:2826
2016-09-09 15:52:42 -07:00
Brian Warner
97c29a3c0b
test_runner: factor out parse_cli() helper
2016-09-09 15:41:00 -07:00
Brian Warner
07e4c491f5
move run_cli() up to test/common_util.py
2016-09-09 15:40:01 -07:00
Brian Warner
1877bd38b9
consolidate skip_if_cannot_represent_filename()
...
Remove duplicate copies of this utility, move it from a mixin/test-class
method to being a simple function in common_util.py
2016-09-09 15:40:01 -07:00
Brian Warner
4f56c4b053
split test_mutable.py into smaller files
2016-08-03 14:54:32 -04:00
Daira Hopwood
c6449b687a
Fix tests on platforms without time.tzset (e.g. Windows). fixes ticket:2725
...
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2016-02-05 19:14:09 +00:00
Daira Hopwood
0abbf474b0
Don't call time.tzset() if the platform doesn't have it. fixes ticket:2723
...
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2016-02-02 18:10:33 +00:00
Leif Ryge
5b33f1fdf3
wui: improved columns in welcome page server list
...
As discussed at https://tahoe-lafs.org/trac/tahoe-lafs/ticket/1973 and in
previous pull request #129 .
- replace lengthy timestamps with human-readable deltas (eg 1h 2m 3s)
- replace "announced" column with "Last RX" column
- remove service column (it always said the same thing, "storage")
- fix colspan on 'You are not presently connected' message
Previous versions, some with github comments: 3fe9053134
, 486dbfc7bd
, and c89ea62580
, 9fabb92486
, bbd8b42a25
Unlike previous attempts, the tests on this one should pass in any timezone.
(But like current master, will fail with Nevow >=0.12...)
Thanks to an anonymous contributor who wrote some of the tests.
2016-01-23 14:28:09 +00:00
Leif Ryge
c86388b79c
revert previous commit to fix attribution (vanity)
...
This reverts the previous commit (modulo the one line that daira added) so that
my contributions will be properly attributed by git blame etc.
2016-01-23 14:27:11 +00:00
Daira Hopwood
a2d724aab7
wui: improved columns in welcome page server list
...
As discussed at https://tahoe-lafs.org/trac/tahoe-lafs/ticket/1973 and in
previous pull request #129 .
- replace lengthy timestamps with human-readable deltas (eg 1h 2m 3s)
- replace "announced" column with "Last RX" column
- remove service column (it always said the same thing, "storage")
- fix colspan on 'You are not presently connected' message
Previous versions, some with github comments: 3fe9053134
, 486dbfc7bd
, and c89ea62580
, 9fabb92486
, bbd8b42a25
Unlike previous attempts, the tests on this one should pass in any timezone.
(But like current master, will fail with Nevow >=0.12...)
Thanks to an anonymous contributor who wrote some of the tests.
2016-01-15 20:02:19 +00:00
David-Sarah Hopwood
884685278b
test/common_util.py: fix a bug in NonASCIIPathMixin that would cause spurious log entries on Windows.
...
Signed-off-by: David-Sarah Hopwood <david-sarah@jacaranda.org>
2012-12-02 01:54:47 +00:00
david-sarah
0dc56daaf9
test/common_util.py: correct fix to mkdir_nonascii. refs #1472
2011-08-09 22:19:06 -07:00
david-sarah
2deba3319c
test/common_util.py: fix a typo. refs #1472
2011-08-09 21:42:35 -07:00
david-sarah
db22fdc20d
Factor out methods dealing with non-ASCII directories and filenames from test_drop_upload.py into common_util.py. refs #1429 , #1472
2011-08-09 20:15:58 -07:00
david-sarah
ffd1c5aca5
Fix for Unicode-related test failures on Zooko's OS X 10.6 machine.
2010-06-08 22:54:48 -07:00
david-sarah
80252debcd
Unicode fixes.
2010-06-06 18:02:15 -07:00
Brian Warner
f35c659b2f
tests: stop using setUpClass/tearDownClass, since they've been deprecated in Twisted-8.2.0
2009-02-23 14:43:12 -07:00
Brian Warner
b73c380cdb
move testutil into test/common_util.py, since it doesn't count as 'code under test' for our pyflakes numbers
2008-10-28 21:28:31 -07:00