-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
convert factories to fixtures within conftest
- Loading branch information
Showing
3 changed files
with
201 additions
and
133 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,20 @@ | ||
import factories | ||
|
||
"functions and classes for testing the factories for populating classes" | ||
from factory.alchemy import SQLAlchemyModelFactory | ||
|
||
def test_factories_all() -> None: | ||
factories.PersonFactory.build() | ||
factories.CodeFactory.build() | ||
factories.MemberFactory.build() | ||
factories.ResearchDriveServiceFactory.build() | ||
factories.DriveOffboardSubmissionFactory.build() | ||
factories.ProjectFactory.build() | ||
|
||
def test_factories_all(# pylint: disable=too-many-arguments,too-many-positional-arguments | ||
person_factory: SQLAlchemyModelFactory, | ||
member_factory: SQLAlchemyModelFactory, | ||
code_factory: SQLAlchemyModelFactory, | ||
research_drive_service_factory: SQLAlchemyModelFactory, | ||
drive_offboard_submission_factory: SQLAlchemyModelFactory, | ||
project_factory: SQLAlchemyModelFactory | ||
) -> None: | ||
"Test the basic functionality of all factories" | ||
person_factory.build() | ||
member_factory.build() | ||
code_factory.build() | ||
research_drive_service_factory.build() | ||
drive_offboard_submission_factory.build() | ||
project_factory.build() |