Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
IanMichaelHarper authored and LefterisJP committed Jul 22, 2023
1 parent 3f2de41 commit 96320bb
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions rotkehlchen/tests/api/test_statistics.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import requests

from rotkehlchen.accounting.structures.balance import BalanceType
from rotkehlchen.api.server import APIServer
from rotkehlchen.balances.manual import ManuallyTrackedBalance
from rotkehlchen.constants.assets import A_BTC, A_ETH, A_ETH2, A_EUR
from rotkehlchen.fval import FVal
Expand Down Expand Up @@ -158,12 +159,17 @@ def test_query_statistics_asset_balance(


@pytest.mark.parametrize('start_with_valid_premium', [True])
def test_query_statistics_asset_balance_errors(rotkehlchen_api_server, rest_api_port):
def test_query_statistics_asset_balance_errors(rotkehlchen_api_server: APIServer):
"""Test that errors at the statistics asset balance over time endpoint are hanled properly"""
start_time = ts_now()

# Check that no asset given is an error
response = requests.post(f'http://localhost:{rest_api_port}/api/1/statistics/balance')
response = requests.post(
api_url_for(
rotkehlchen_api_server,
'statisticsassetbalanceresource',
),
)
assert_error_response(
response=response,
status_code=HTTPStatus.BAD_REQUEST,
Expand Down

0 comments on commit 96320bb

Please sign in to comment.