-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🥚ignore_instrument setting #237
Conversation
async def test_ignoteorder(fmo, ignore_order): | ||
"""ignore order Testing""" | ||
result = await fmo.get_order(ignore_order) | ||
assert result is None |
Check notice
Code scanning / Bandit
Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Codecov Report
@@ Coverage Diff @@
## main #237 +/- ##
==========================================
+ Coverage 96.29% 98.21% +1.91%
==========================================
Files 2 2
Lines 54 56 +2
==========================================
+ Hits 52 55 +3
+ Misses 2 1 -1
|
🥚ignore_instrument setting (Sourcery refactored)
@@ -94,9 +95,17 @@ | |||
async def test_settings(): | |||
"""Search Testing""" | |||
assert settings.VALUE == "On Testing" | |||
assert settings.findmyorder_enabled == True | |||
assert settings.findmyorder_enabled is True |
Check notice
Code scanning / Bandit
Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
"""Search Testing""" | ||
result = await fmo.get_info() | ||
print(result) | ||
assert result is not None |
Check notice
Code scanning / Bandit
Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
result = await fmo.get_info() | ||
print(result) | ||
assert result is not None | ||
assert str(result).startswith("FindMyOrder") |
Check notice
Code scanning / Bandit
Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
@@ -181,10 +198,11 @@ | |||
"""replace instrument Testing""" | |||
result = await fmo.get_order(crypto_short_order) | |||
print(result) | |||
assert settings.instrument_mapping == True | |||
assert settings.instrument_mapping is True |
Check notice
Code scanning / Bandit
Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
No description provided.