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

Features/1 implement pytest module (PHASE 1) #7

Merged
merged 24 commits into from
Oct 2, 2020

Conversation

jacobmartinez3d
Copy link
Member

This PR aims to begin the pytest implementation process.

  • a 'tests/' directory has been included at the repo's root which houses the individual test modules as well as the 'seed_data.yml/json' files.
  • conftest.py is a simple test fixture which is meant only to pass down the new MaglaEntityTestFixture objects to the test cases.
  • MaglaEntityTestFixture is located at 'magla-repo/magla/test.py' and is responsible for all logic related to start/teardown procedures as well as keeping track of instances for easier memory management during testing.

Objectives for Phase 1:

  • test direct CRUD operations with SQLAlchemy session object.
  • isolate and test individual sub-entities as far as possible without requiring other magla entities or modules(magla.utils is ok).
  • make sure to always compare backend data with seed data used initially.

@jacobmartinez3d jacobmartinez3d merged commit 1c76137 into development Oct 2, 2020
@jacobmartinez3d jacobmartinez3d linked an issue Oct 3, 2020 that may be closed by this pull request
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.

implement pytest testing
1 participant