10
app/devops/tests/functional/git_group/conftest.py
Normal file
10
app/devops/tests/functional/git_group/conftest.py
Normal file
@ -0,0 +1,10 @@
|
||||
import pytest
|
||||
|
||||
from devops.models.git_group import GitGroup
|
||||
|
||||
|
||||
|
||||
@pytest.fixture( scope = 'class')
|
||||
def model(request):
|
||||
|
||||
yield GitGroup
|
@ -0,0 +1,38 @@
|
||||
import pytest
|
||||
|
||||
from core.tests.functional.centurion_abstract.test_functional_centurion_abstract_model import (
|
||||
CenturionAbstractModelInheritedCases
|
||||
)
|
||||
|
||||
from devops.models.git_group import GitGroup
|
||||
|
||||
|
||||
|
||||
@pytest.mark.model_gitgroup
|
||||
class GitGroupModelTestCases(
|
||||
CenturionAbstractModelInheritedCases
|
||||
):
|
||||
|
||||
|
||||
kwargs_create_item = {
|
||||
'parent_group': None,
|
||||
'provider': GitGroup.GitProvider.GITHUB,
|
||||
'provider_pk': 1,
|
||||
'name': 'a name',
|
||||
'path': 'a_path',
|
||||
'description': 'a random bit of text.'
|
||||
}
|
||||
|
||||
|
||||
|
||||
class GitGroupModelInheritedCases(
|
||||
GitGroupModelTestCases,
|
||||
):
|
||||
pass
|
||||
|
||||
|
||||
|
||||
class GitGroupModelPyTest(
|
||||
GitGroupModelTestCases,
|
||||
):
|
||||
pass
|
@ -11,8 +11,7 @@ from devops.models.git_group import GitGroup
|
||||
|
||||
|
||||
|
||||
@pytest.mark.models
|
||||
@pytest.mark.unit
|
||||
@pytest.mark.model_gitgroup
|
||||
class GitGroupModelTestCases(
|
||||
CenturionAbstractModelInheritedCases
|
||||
):
|
||||
|
@ -1045,6 +1045,7 @@ markers = [
|
||||
"centurion_models: Selects Centurion models",
|
||||
"functional: Selects all Functional tests.",
|
||||
"meta_models: Selects Meta models",
|
||||
"model_gitgroup: Selects tests for model `git group`",
|
||||
"models: Selects all models tests.",
|
||||
"tenancy_models: Selects Tenancy models.",
|
||||
"unit: Selects all Unit Tests.",
|
||||
|
Reference in New Issue
Block a user