Ejemplo n.º 1
0
def test_draft_view(session_mocker: MockerFixture) -> views.DraftView:
    return session_mocker.create_autospec(views.DraftView)
Ejemplo n.º 2
0
def test_testuser_view(session_mocker: MockerFixture) -> views.TestUserView:
    return session_mocker.create_autospec(views.TestUserView)
Ejemplo n.º 3
0
def test_feature_view_mocked(test_browse_url: Optional[str], mocker: MockerFixture) -> views.FeatureView:
    mock = mocker.create_autospec(views.FeatureView)
    mock.browse_url = test_browse_url
    mock.feature_suffix = ".feature"
    return mock
Ejemplo n.º 4
0
def test_testrun_view(session_mocker: MockerFixture) -> views.TestRunView:
    return session_mocker.create_autospec(views.TestRunView)