Skip to content

Commit ecd823d

Browse files
author
David Robertson
authored
Flatten tests/rest/client/{v1,v2_alpha} too (matrix-org#10667)
1 parent f499dc3 commit ecd823d

27 files changed

+6
-18
lines changed

changelog.d/10667.misc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Flatten the `tests.synapse.rests` package by moving the contents of `v1` and `v2_alpha` into the parent.

mypy.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ files =
9191
tests/handlers/test_password_providers.py,
9292
tests/handlers/test_room_summary.py,
9393
tests/handlers/test_sync.py,
94-
tests/rest/client/v1/test_login.py,
95-
tests/rest/client/v2_alpha/test_auth.py,
94+
tests/rest/client/test_login.py,
95+
tests/rest/client/test_auth.py,
9696
tests/util/test_itertools.py,
9797
tests/util/test_stream_change_cache.py
9898

tests/rest/client/v2_alpha/test_auth.py renamed to tests/rest/client/test_auth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
from tests import unittest
2727
from tests.handlers.test_oidc import HAS_OIDC
28-
from tests.rest.client.v1.utils import TEST_OIDC_CONFIG
28+
from tests.rest.client.utils import TEST_OIDC_CONFIG
2929
from tests.server import FakeChannel
3030
from tests.unittest import override_config, skip_unless
3131

tests/rest/client/v1/test_login.py renamed to tests/rest/client/test_login.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
from tests import unittest
3333
from tests.handlers.test_oidc import HAS_OIDC
3434
from tests.handlers.test_saml import has_saml2
35-
from tests.rest.client.v1.utils import TEST_OIDC_AUTH_ENDPOINT, TEST_OIDC_CONFIG
35+
from tests.rest.client.utils import TEST_OIDC_AUTH_ENDPOINT, TEST_OIDC_CONFIG
3636
from tests.test_utils.html_parsers import TestHtmlParser
3737
from tests.unittest import HomeserverTestCase, override_config, skip_unless
3838

File renamed without changes.
File renamed without changes.

tests/rest/client/v1/__init__.py

Lines changed: 0 additions & 13 deletions
This file was deleted.

tests/rest/client/v2_alpha/__init__.py

Whitespace-only changes.

tests/unittest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ def setUp(self):
252252
reactor=self.reactor,
253253
)
254254

255-
from tests.rest.client.v1.utils import RestHelper
255+
from tests.rest.client.utils import RestHelper
256256

257257
self.helper = RestHelper(self.hs, self.site, getattr(self, "user_id", None))
258258

0 commit comments

Comments
 (0)