Jean-Paul Calderone
f88061e31c
docstring
2020-12-17 09:16:05 -05:00
Jean-Paul Calderone
a363c8de67
Fix test_non_numeric_pid (and put it in a better place too)
2020-12-17 09:11:29 -05:00
Jean-Paul Calderone
bb495b6dc5
unused imports
2020-12-16 21:26:59 -05:00
Jean-Paul Calderone
240d5d1164
Remove react monkey patching by supplying an alternate reactor
...
Let react run and do its thing. This gives us an even nicer way to check the
exit code.
2020-12-16 21:25:50 -05:00
Jean-Paul Calderone
faf8da82dd
Get rid of the sys.exit monkey-patch
...
It's just an exception. Let it get logged and then check after.
2020-12-16 21:20:16 -05:00
Jean-Paul Calderone
a04a915628
Parameterize the Options class so we can synthesize an unhandled exception
2020-12-16 21:15:24 -05:00
Jean-Paul Calderone
2746eb9ae1
Fix the broken fake_react by not using the argv feature
2020-12-16 20:58:27 -05:00
Jean-Paul Calderone
a4b0b4a01a
Parameterize stderr to allmydata.scripts.runner.run
2020-12-16 20:55:00 -05:00
Jean-Paul Calderone
1f229ce9f6
All you have to do to drop it is not save it in the first place
...
Also it would have been dropped as soon as this function returned, anyway.
2020-12-16 20:51:11 -05:00
Jean-Paul Calderone
d5bff458b6
Parameterize argv to allmydata.scripts.runner.run
2020-12-16 20:51:01 -05:00
Jean-Paul Calderone
96b54e8f62
news fragment
2020-12-16 20:50:08 -05:00
Jean-Paul Calderone
0ffbc7870e
Okay, let KeyboardInterrupt through
2020-12-16 20:32:04 -05:00
Jean-Paul Calderone
895ba55cf7
Python 3 compatibility
2020-12-16 18:17:14 -05:00
Jean-Paul Calderone
a223f6bb60
More reliably corrupt the signature
2020-12-16 17:31:06 -05:00
Jean-Paul Calderone
4117beba6a
remove unused import
...
yaaay
2020-12-16 16:25:51 -05:00
Jean-Paul Calderone
b200075246
whitespace
2020-12-16 16:23:05 -05:00
Jean-Paul Calderone
98000c2b66
re-implement test_unsigned_announcement without mock
...
and to make assertions about public behavior instead of private implementation
details
2020-12-16 16:20:38 -05:00
Jean-Paul Calderone
b2c9296f6b
Use ObserverList instead of an ad hoc reimplementation
2020-12-16 16:20:00 -05:00
Jean-Paul Calderone
60e401ca69
Make ObserverList synchronous, reentrant, and exception safe
...
with tests
2020-12-16 16:19:33 -05:00
Jean-Paul Calderone
3513e9b4fc
news fragment
2020-12-16 15:25:11 -05:00
Jean-Paul Calderone
83ebaef86c
Stop mocking safe_load
...
The comment implies this will cause something to break on some platform.
Let's find out.
2020-12-16 15:24:33 -05:00
Jean-Paul Calderone
d19b1cfd68
Merge pull request #933 from LeastAuthority/3533.test_root-no-mock
...
Remove Mock from test_root
Fixes: ticket:3533
2020-12-16 15:15:17 -05:00
Itamar Turner-Trauring
b5f2afe39c
WIP porting test_status.py.
2020-12-16 14:13:46 -05:00
Itamar Turner-Trauring
67c0a4ac84
Port another test module to Python 3.
2020-12-16 13:53:49 -05:00
Jean-Paul Calderone
8bb4d10d7f
news fragment
2020-12-16 12:28:29 -05:00
Jean-Paul Calderone
9f28ccb2a4
Move the last three mock-using tests to test_tor_provider
...
where they can be rewritten later
2020-12-16 12:07:54 -05:00
Jean-Paul Calderone
3d82ca0d25
Use boring old dependency injection to replace mocks in this test
2020-12-16 11:50:35 -05:00
Jean-Paul Calderone
3d564f97d5
Switch away from mock in a few more simple cases in test_connections.py
2020-12-16 11:48:33 -05:00
Jean-Paul Calderone
468895c74d
Duplicate of allmydata.test.test_tor_provider.Provider.test_handler_control_endpoint
2020-12-16 11:28:36 -05:00
Jean-Paul Calderone
7eb9f2ce54
Moved into allmydata.test.test_i2p_provider
...
This follows the local convention of using mock even though I'm trying to get
rid of mock. This is because it keeps the test_i2p_provider suite consistent
which means it won't make removing mock from test_i2p_provider later much
harder and lets me avoid doing that work now.
2020-12-16 11:20:45 -05:00
Itamar Turner-Trauring
61c76902ca
Port to Python 3.
2020-12-16 11:16:34 -05:00
Jean-Paul Calderone
8271dbf3e6
Duplicate of allmydata.test.test_i2p_provider.Provider.test_handler_configdir
2020-12-16 11:15:51 -05:00
Jean-Paul Calderone
81b684b583
Duplicate of allmydata.test.test_i2p_provider.Provider.test_handler_launch_configdir_executable
2020-12-16 11:15:21 -05:00
Itamar Turner-Trauring
f7362dc1ef
Port to Python 3.
2020-12-16 11:14:55 -05:00
Jean-Paul Calderone
6d66be43b9
Duplicate of allmydata.test.test_i2p_provider.Provider.test_handler_launch_configdir
2020-12-16 11:14:46 -05:00
Jean-Paul Calderone
e84860ef15
Duplicate of allmydata.test.test_i2p_provider.Provider.test_handler_launch
2020-12-16 11:13:52 -05:00
Itamar Turner-Trauring
acc36c34d0
Tests pass on Python 2 and Python 3.
2020-12-16 11:13:32 -05:00
Jean-Paul Calderone
ececae2ce9
Duplicate of allmydata.test.test_i2p_provider.Provider.test_handler_sam_endpoint
2020-12-16 11:12:36 -05:00
Jean-Paul Calderone
f7c92bf4c9
Duplicate of allmydata.test.test_i2p_provider.Provider.test_handler_default
2020-12-16 11:11:22 -05:00
Jean-Paul Calderone
01b31e0680
Duplicate of allmydata.test.test_tor_provider.CreateOnion.test_launch_executable
2020-12-16 11:06:57 -05:00
Jean-Paul Calderone
61778bc799
Duplicate of allmydata.test.test_tor_provider.CreateOnion.test_launch
2020-12-16 11:05:51 -05:00
Jean-Paul Calderone
71ced4c228
Duplicate of allmydata.test.test_tor_provider.Provider.test_handler_socks_endpoint
2020-12-16 11:03:37 -05:00
Jean-Paul Calderone
ec9851f6d8
Duplicate of allmydata.test.test_i2p_provider.Provider.test_handler_no_i2p
2020-12-16 10:38:13 -05:00
Jean-Paul Calderone
b5d4a2579b
Duplicate of allmydata.test.test_i2p_provider.Provider.test_handler_disabled
2020-12-16 10:37:41 -05:00
Jean-Paul Calderone
17d9988d45
Duplicate of allmydata.test.test_tor_provider.Provider.test_handler_no_tor
2020-12-16 10:34:33 -05:00
Jean-Paul Calderone
d3f8839f1b
Duplicate of allmydata.test.test_tor_provider.Provider.test_handler_disabled
2020-12-16 10:34:07 -05:00
Itamar Turner-Trauring
052b3d9fb1
Re-enable logging validation on Python 3.
2020-12-16 10:06:59 -05:00
Itamar Turner-Trauring
54a11dbb6a
Merge pull request #932 from tahoe-lafs/3560.test_eliotutil-python-3
...
Port eliotutil and tests to Python 3
Fixes ticket:3560
2020-12-16 09:40:19 -05:00
Jean-Paul Calderone
eeebd15c42
Take Mock out of ``allmydata.test.test_connections.TCP``
2020-12-16 09:15:37 -05:00
Jean-Paul Calderone
2b1ea5c604
Remove the client Mock object
...
It wasn't used by anything so that was easy. Clean up the test as long as
we're here.
2020-12-15 18:30:12 -05:00