tests: move WebTestCase
to wuttaweb.testing
module
This commit is contained in:
parent
5cec585fdf
commit
7895ce4676
24 changed files with 106 additions and 80 deletions
|
@ -1,6 +1,6 @@
|
|||
# -*- coding: utf-8; -*-
|
||||
|
||||
from tests.util import WebTestCase
|
||||
from wuttaweb.testing import WebTestCase
|
||||
|
||||
|
||||
class TestIncludeMe(WebTestCase):
|
||||
|
|
|
@ -5,7 +5,7 @@ from unittest.mock import MagicMock, patch
|
|||
from pyramid.httpexceptions import HTTPFound, HTTPForbidden
|
||||
|
||||
from wuttaweb.views import auth as mod
|
||||
from tests.util import WebTestCase
|
||||
from wuttaweb.testing import WebTestCase
|
||||
|
||||
|
||||
class TestAuthView(WebTestCase):
|
||||
|
|
|
@ -5,7 +5,7 @@ from pyramid.httpexceptions import HTTPFound, HTTPForbidden, HTTPNotFound
|
|||
from wuttaweb.views import base as mod
|
||||
from wuttaweb.forms import Form
|
||||
from wuttaweb.grids import Grid, GridAction
|
||||
from tests.util import WebTestCase
|
||||
from wuttaweb.testing import WebTestCase
|
||||
|
||||
|
||||
class TestView(WebTestCase):
|
||||
|
|
|
@ -10,7 +10,7 @@ from wuttjamaican.db import model
|
|||
from wuttjamaican.batch import BatchHandler
|
||||
from wuttaweb.views import MasterView, batch as mod
|
||||
from wuttaweb.progress import SessionProgress
|
||||
from tests.util import WebTestCase
|
||||
from wuttaweb.testing import WebTestCase
|
||||
|
||||
|
||||
class MockBatch(model.BatchMixin, model.Base):
|
||||
|
|
|
@ -5,7 +5,7 @@ from unittest.mock import patch
|
|||
import colander
|
||||
|
||||
from wuttaweb.views import common as mod
|
||||
from tests.util import WebTestCase
|
||||
from wuttaweb.testing import WebTestCase
|
||||
|
||||
|
||||
class TestCommonView(WebTestCase):
|
||||
|
|
|
@ -9,7 +9,7 @@ from pyramid.httpexceptions import HTTPNotFound
|
|||
from pyramid.response import Response
|
||||
|
||||
from wuttaweb.views import email as mod
|
||||
from tests.util import WebTestCase
|
||||
from wuttaweb.testing import WebTestCase
|
||||
|
||||
|
||||
class TestEmailSettingViews(WebTestCase):
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# -*- coding: utf-8; -*-
|
||||
|
||||
from wuttaweb.views import essential as mod
|
||||
from tests.util import WebTestCase
|
||||
from wuttaweb.testing import WebTestCase
|
||||
|
||||
|
||||
class TestEssentialViews(WebTestCase):
|
||||
|
|
|
@ -16,7 +16,7 @@ from wuttaweb.views import master as mod
|
|||
from wuttaweb.views import View
|
||||
from wuttaweb.progress import SessionProgress
|
||||
from wuttaweb.subscribers import new_request_set_user
|
||||
from tests.util import WebTestCase
|
||||
from wuttaweb.testing import WebTestCase
|
||||
|
||||
|
||||
class TestMasterView(WebTestCase):
|
||||
|
|
|
@ -7,7 +7,7 @@ from sqlalchemy import orm
|
|||
from pyramid.httpexceptions import HTTPNotFound
|
||||
|
||||
from wuttaweb.views import people
|
||||
from tests.util import WebTestCase
|
||||
from wuttaweb.testing import WebTestCase
|
||||
|
||||
|
||||
class TestPersonView(WebTestCase):
|
||||
|
|
|
@ -4,7 +4,7 @@ from pyramid import testing
|
|||
|
||||
from wuttaweb.views import progress as mod
|
||||
from wuttaweb.progress import get_progress_session
|
||||
from tests.util import WebTestCase
|
||||
from wuttaweb.testing import WebTestCase
|
||||
|
||||
|
||||
class TestProgressView(WebTestCase):
|
||||
|
|
|
@ -8,7 +8,7 @@ import colander
|
|||
|
||||
from wuttaweb.views import roles as mod
|
||||
from wuttaweb.forms.schema import RoleRef
|
||||
from tests.util import WebTestCase
|
||||
from wuttaweb.testing import WebTestCase
|
||||
|
||||
|
||||
class TestRoleView(WebTestCase):
|
||||
|
|
|
@ -6,7 +6,7 @@ import colander
|
|||
from pyramid.httpexceptions import HTTPNotFound
|
||||
|
||||
from wuttaweb.views import settings as mod
|
||||
from tests.util import WebTestCase
|
||||
from wuttaweb.testing import WebTestCase
|
||||
|
||||
|
||||
class TestAppInfoView(WebTestCase):
|
||||
|
|
|
@ -8,7 +8,7 @@ from unittest.mock import patch, MagicMock
|
|||
from wuttaweb.views import upgrades as mod
|
||||
from wuttjamaican.exc import ConfigurationError
|
||||
from wuttaweb.progress import get_progress_session
|
||||
from tests.util import WebTestCase
|
||||
from wuttaweb.testing import WebTestCase
|
||||
|
||||
|
||||
class TestUpgradeView(WebTestCase):
|
||||
|
|
|
@ -7,7 +7,7 @@ from sqlalchemy import orm
|
|||
import colander
|
||||
|
||||
from wuttaweb.views import users as mod
|
||||
from tests.util import WebTestCase
|
||||
from wuttaweb.testing import WebTestCase
|
||||
|
||||
|
||||
class TestUserView(WebTestCase):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue