fixtures.py (removed)¶
Last source¶
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | """Module defining fixtures for the Repository code_repository entity."""
from pytest import fixture
from .factories import RepositoryFactory
@fixture
def repository_factory():
"""Fixture to return the factory to create a ``Repository``.
Returns
-------
Type[RepositoryFactory]
The ``RepositoryFactory`` class.
"""
return RepositoryFactory
|
Changes¶
refactor(core): Rename core domain context to code_repository¶
- Commit
- Hash
- Date
2019-08-15 23:31:33 +0200
- Type
Renamed
- New path
isshub/domain/contexts/code_repository/entities/repository/tests/fixtures.py
- Stats
+1 -1
@@ -1,4 +1,4 @@
-"""Module defining fixtures for the Repository core entity."""
+"""Module defining fixtures for the Repository code_repository entity."""
from pytest import fixture
feat(repository): Add 1st domain context (core) and entity (Repository)¶
- Commit
- Hash
- Date
2019-06-07 21:03:50 +0200
- Type
Added
- Stats
+19 -0
@@ -0,0 +1,19 @@
+"""Module defining fixtures for the Repository core entity."""
+
+
+from pytest import fixture
+
+from .factories import RepositoryFactory
+
+
+@fixture
+def repository_factory():
+ """Fixture to return the factory to create a ``Repository``.
+
+ Returns
+ -------
+ Type[RepositoryFactory]
+ The ``RepositoryFactory`` class.
+
+ """
+ return RepositoryFactory