Merge pull request #411 from pikers/ci_fix_tractor_testing
Drop `tractor.testing` import in qt testsno_signal_pi_overlays
						commit
						d05caa4b02
					
				|  | @ -8,7 +8,6 @@ from trio.testing import trio_test | ||||||
| from piker.brokers import questrade as qt | from piker.brokers import questrade as qt | ||||||
| import pytest | import pytest | ||||||
| import tractor | import tractor | ||||||
| from tractor.testing import tractor_test |  | ||||||
| 
 | 
 | ||||||
| import piker | import piker | ||||||
| from piker.brokers import get_brokermod | from piker.brokers import get_brokermod | ||||||
|  | @ -23,6 +22,12 @@ pytestmark = pytest.mark.skipif( | ||||||
|     reason="questrade tests can only be run locally with an API key", |     reason="questrade tests can only be run locally with an API key", | ||||||
| ) | ) | ||||||
| 
 | 
 | ||||||
|  | # TODO: this module was removed from tractor into it's | ||||||
|  | # tests/conftest.py, we need to rewrite the below tests | ||||||
|  | # to use the `open_pikerd_runtime()` to make these work again | ||||||
|  | # (if we're not just gonna junk em). | ||||||
|  | # from tractor.testing import tractor_test | ||||||
|  | 
 | ||||||
| 
 | 
 | ||||||
| # stock quote | # stock quote | ||||||
| _ex_quotes = { | _ex_quotes = { | ||||||
|  | @ -106,7 +111,7 @@ def match_packet(symbols, quotes, feed_type='stock'): | ||||||
|     assert not quotes |     assert not quotes | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| @tractor_test | # @tractor_test | ||||||
| async def test_concurrent_tokens_refresh(us_symbols, loglevel): | async def test_concurrent_tokens_refresh(us_symbols, loglevel): | ||||||
|     """Verify that concurrent requests from mulitple tasks work alongside |     """Verify that concurrent requests from mulitple tasks work alongside | ||||||
|     random token refreshing which simulates an access token expiry + refresh |     random token refreshing which simulates an access token expiry + refresh | ||||||
|  | @ -337,7 +342,7 @@ async def stream_stocks(feed, symbols): | ||||||
|         'options_and_options', |         'options_and_options', | ||||||
|     ], |     ], | ||||||
| ) | ) | ||||||
| @tractor_test | # @tractor_test | ||||||
| async def test_quote_streaming(tmx_symbols, loglevel, stream_what): | async def test_quote_streaming(tmx_symbols, loglevel, stream_what): | ||||||
|     """Set up option streaming using the broker daemon. |     """Set up option streaming using the broker daemon. | ||||||
|     """ |     """ | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue