Open aaron-schroeder opened 1 year ago
import unittest from responses import _recorder from distilling_flask import db from distilling_flask.io_storages.strava.models import StravaImportStorage from tests.unit_tests.io_storages.strava.base import LiveStravaApiFlaskTestCase class TestCase(LiveStravaApiFlaskTestCase): @_recorder.record(file_path='out.yaml') def test_athlete_activities(self): storage = db.session.scalars(db.select(StravaImportStorage)).first() client = storage.get_client() client.get('/athlete/activities', per_page=200) # page=1