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

Fix tests and add them to Continuous Integration #68

Merged
merged 6 commits into from
Mar 25, 2024

Conversation

Snailed
Copy link
Collaborator

@Snailed Snailed commented Mar 25, 2024

Changelog

  1. Added optional dependencies that are nescessary for testing to pyproject.toml. These can be installed by pip install carbontracker[test] or pip install -e .[test] locally (I have to escape the square brackets in ZSH)
  2. Fixed test_set_carbon_intensity_message which only passed when the test was run in Zurich, since it did not mock geocoder correctly.
  3. Added testing to CI, and skipped several tests which depend on at least one component being available.

For now, it only tests Python 3.12. I will work on fixing tests so it tests 3.8-3.12.

trigger CI

CI test

make sure unittest is installed

change python version

narrowing test scope for debugging

widening test scope a bit

increased verbosity

commented out TestCLI for debugging

try ignore test in CI

try skip other tests

skip some more

skip more tests
@PedramBakh PedramBakh merged commit b1d56a7 into lfwa:dev Mar 25, 2024
1 check passed
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

Successfully merging this pull request may close these issues.

None yet

2 participants