Skip to content

Commit

Permalink
Move test utils out of distributed package
Browse files Browse the repository at this point in the history
  • Loading branch information
blag committed Sep 21, 2023
1 parent 12cc8b6 commit b7d1669
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
4 changes: 0 additions & 4 deletions docs/reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,3 @@ Views
-----
.. autoclass:: user_sessions.views.SessionListView
.. autoclass:: user_sessions.views.SessionDeleteView

Unit tests
----------
.. autoclass:: user_sessions.utils.tests.Client
3 changes: 2 additions & 1 deletion tests/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
from user_sessions.templatetags.user_sessions import (
city, country, device, location,
)
from user_sessions.utils.tests import Client

from .utils import Client

try:
from django.contrib.gis.geoip2 import GeoIP2
Expand Down
2 changes: 1 addition & 1 deletion user_sessions/utils/tests.py → tests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from django.http import HttpRequest
from django.test import Client as BaseClient

from ..backends.db import SessionStore
from user_sessions.backends.db import SessionStore


class Client(BaseClient):
Expand Down

0 comments on commit b7d1669

Please sign in to comment.