Skip to content
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

Merged
merged 4 commits into from
Jul 11, 2023
Merged

🥚ignore_instrument setting #237

merged 4 commits into from
Jul 11, 2023

Conversation

mraniki
Copy link
Owner

@mraniki mraniki commented Jul 11, 2023

No description provided.

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.

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
@codecov
Copy link

codecov bot commented Jul 11, 2023

Codecov Report

Merging #237 (b8deab5) into main (a3cb13a) will increase coverage by 1.91%.
The diff coverage is 91.66%.

@@            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     
Impacted Files Coverage Δ
findmyorder/main.py 98.11% <90.90%> (+2.03%) ⬆️
findmyorder/__init__.py 100.00% <100.00%> (ø)

@@ -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.

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.

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.

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.

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
@mraniki mraniki merged commit 4416ef1 into main Jul 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant