This repository was archived by the owner on Dec 5, 2025. It is now read-only.
Repository navigation
Create comprehensive Pytest test suite - #12
Merged
jinglemansweep merged 4 commits intoNov 29, 2025
Merged
Conversation
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces new test fixtures and updates the project configuration to migrate from Poetry to PEP 621 and Setuptools. The main changes enable more robust and maintainable testing for the MeshCore API, including reusable pytest fixtures and sample data for events and tags.
Project configuration migration:
pyproject.tomlfrom Poetry to PEP 621 and Setuptools, updating metadata, dependencies, scripts, and build system configuration. This makes the project compatible with standard Python packaging tools and simplifies dependency management.Testing infrastructure improvements:
tests/conftest.pyto support database setup, configuration, FastAPI test clients, mock objects, and sample data for MeshCore API tests. These fixtures enable easier and more consistent test writing.Sample data for tests:
tests/fixtures/sample_events.jsoncontaining representative MeshCore event samples for use in integration and unit tests.tests/fixtures/sample_tags.jsonwith sample node tags, including various value types and realistic data, to support tag-related tests.tests/fixtures/invalid_tags.jsoncontaining examples of malformed or invalid node tags for negative testing scenarios.