3
0
Fork 0

tests: move WebTestCase to wuttaweb.testing module

This commit is contained in:
Lance Edgar 2025-01-06 16:47:48 -06:00
parent 5cec585fdf
commit 7895ce4676
24 changed files with 106 additions and 80 deletions

View file

@ -1,6 +1,6 @@
# -*- coding: utf-8; -*-
from tests.util import WebTestCase
from wuttaweb.testing import WebTestCase
class TestIncludeMe(WebTestCase):

View file

@ -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):

View file

@ -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):

View file

@ -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):

View file

@ -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):

View file

@ -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):

View file

@ -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):

View file

@ -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):

View file

@ -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):

View file

@ -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):

View file

@ -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):

View file

@ -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):

View file

@ -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):

View file

@ -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):