Skip to content

Commit

Permalink
test: resolve mock JWT invalid. mock API call
Browse files Browse the repository at this point in the history
  • Loading branch information
RDWimmers committed Jun 19, 2024
1 parent 36dd6a4 commit fb0c31c
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions tests/model/test_fitcore.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,6 @@ def test_fitcore_model_generator() -> None:
+ datetime.timedelta(days=80),
)

# generate fitcore model
model = FitCoreModelGenerator(
series=series,
client=client,
)

# mock API calls
if not real_http:
with requests_mock.Mocker() as m:
Expand All @@ -55,8 +49,20 @@ def test_fitcore_model_generator() -> None:
)
m.post(BASE_URL + f"simpleKoppejan/predict", json={"settlement": [0] * 500})

# generate fitcore model
model = FitCoreModelGenerator(
series=series,
client=client,
)

model.plot_fill_settlement_time(log_time=False)
else:
# generate fitcore model
model = FitCoreModelGenerator(
series=series,
client=client,
)

model.plot_fill_settlement_time(log_time=False)

# Show the plots
Expand Down

0 comments on commit fb0c31c

Please sign in to comment.