Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
async def test_up_then_down(strategy_tester):
await strategy_tester.run_test_up_then_down(None, StrategyTestSuite.SKIP_LONG_STEPS)
def _run_test_suite(self, config):
self.current_test_suite = StrategyTestSuite()
self.current_test_suite.initialize_with_strategy(self.strategy_class, copy.deepcopy(config))
no_error = asyncio.run(self.current_test_suite.run_test_suite(self.current_test_suite),
debug=FORCE_ASYNCIO_DEBUG_OPTION)
if not no_error:
self.errors = self.errors.union(set(str(e) for e in self.current_test_suite.get_exceptions()))
run_result = self.current_test_suite.get_test_suite_result()
self.run_results.append(run_result)