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

Add tests for example scripts #25

Closed
wants to merge 4 commits into from
Closed

Add tests for example scripts #25

wants to merge 4 commits into from

Conversation

ngoldbaum
Copy link
Contributor

@ngoldbaum ngoldbaum commented Feb 6, 2024

Fixes #11.

In addition to the new tests, this adds a few dependencies needed by examples to to pyproject.toml and dev-environment.yml and fixes a couple incorrect package names in dev-environment.yml.

It also fixes the csp.stats usage in e_21_numpy_stats.py, which assumes csp.stats is usable without explicitly importing it first. Happy to revert the change to csp/__init__.py and add an import to that example if not importing stats into the csp module was done on purpose.

I also decreased the runtime of a number of the tests (one of them never completed) to make the new test I'm adding complete in a reasonable time. Happy to adjust the timeouts that I changed here.

A couple of the examples have bugs, I opened #23 and #24 to track those and marked those examples as xfail.

@timkpaine
Copy link
Member

closing in favor of #26

@timkpaine timkpaine closed this Feb 6, 2024
@ngoldbaum
Copy link
Contributor Author

I'm going to rewrite this to drop the new tests and modifications to the examples, but there are two other fixes in here that should be merged IMO.

By the way, maybe we should be assigning issues to ourselves if we're working on them to avoid accidentally duplicating work like this?

@timkpaine timkpaine deleted the njg/test-examples branch February 19, 2024 23:41
@timkpaine timkpaine added the tag: duplicate Duplicate of another issue - will be closed label Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tag: duplicate Duplicate of another issue - will be closed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Example scripts should run in tests
2 participants