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

Long-running tests #4

Open
chriscarrollsmith opened this issue Apr 23, 2024 · 1 comment
Open

Long-running tests #4

chriscarrollsmith opened this issue Apr 23, 2024 · 1 comment

Comments

@chriscarrollsmith
Copy link
Owner

The unit tests, especially test_utils.py, are running very slowly. Now that we're using cached responses for the tests, there's no good reason for the long-running tests. I suspect the length of runtime is due to conservative wait time parameters left over from when we were using live API calls during testing. Reducing test runtime is probably as simple as changing these parameters.

@chriscarrollsmith
Copy link
Owner Author

I also think that long-running test workflows in Github Actions workflows are partly due to the install time of responses and its dependencies. This will be resolved if I can generate mocks programmatically rather than use mocks captured with responses. (I also would like to add a test that checks that API responses still match the spec I'm using for mock generation.

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

No branches or pull requests

1 participant