Skip to content

Commit

Permalink
fix(tests): seperated db tests and api tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tomjeannesson committed Sep 18, 2023
1 parent 01a9e1c commit 8a1ab68
Show file tree
Hide file tree
Showing 41 changed files with 11 additions and 9 deletions.
2 changes: 2 additions & 0 deletions django_napse/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from django_napse.api import *
from django_napse.auth import *
from django_napse.core import *
from django_napse.simulations import *
from django_napse.utils import *
2 changes: 1 addition & 1 deletion tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
from .django_tests import *

3 changes: 2 additions & 1 deletion tests/django_tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
from . import *
from .api import *
from .db import *
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from django_napse.core.models import MBPPlugin
from django_napse.utils.constants import PLUGIN_CATEGORIES
from django_napse.utils.model_test_case import ModelTestCase
from tests.django_tests.bots.test_plugin import PluginDefaultTestCase
from tests.django_tests.db.bots.test_plugin import PluginDefaultTestCase

"""
python tests/test_app/manage.py test tests.django_tests.bots.test_plugin_mbp -v2 --keepdb --parallel
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from django_napse.core.models import Controller, DCAStrategy
from django_napse.utils.model_test_case import ModelTestCase
from tests.django_tests.bots.test_strategy import StrategyDefaultTestCase
from tests.django_tests.db.bots.test_strategy import StrategyDefaultTestCase

"""
python tests/test_app/manage.py test tests.django_tests.bots.test_strategies.test_dca -v2 --keepdb --parallel
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from django_napse.core.models import Controller, EmptyStrategy
from django_napse.utils.model_test_case import ModelTestCase
from tests.django_tests.bots.test_strategy import StrategyDefaultTestCase
from tests.django_tests.db.bots.test_strategy import StrategyDefaultTestCase

"""
python tests/test_app/manage.py test tests.django_tests.bots.test_strategies.test_empty_bot -v2 --keepdb --parallel
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from django_napse.core.models import Controller, TurboDCAStrategy
from django_napse.utils.model_test_case import ModelTestCase
from tests.django_tests.bots.test_strategy import StrategyDefaultTestCase
from tests.django_tests.db.bots.test_strategy import StrategyDefaultTestCase

"""
python tests/test_app/manage.py test tests.django_tests.bots.test_strategies.test_turbo_dca -v2 --keepdb --parallel
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions tests/django_tests/db/transactions/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import *
1 change: 1 addition & 0 deletions tests/django_tests/db/wallets/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import *
File renamed without changes.
File renamed without changes.
3 changes: 0 additions & 3 deletions tests/test_app/manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
from pathlib import Path

sys.path.append(str(Path(os.path.dirname(__file__)).parent.parent))
# sys.path.append("../../")
# print(sys.path)
# print(os.listdir())


def main():
Expand Down

0 comments on commit 8a1ab68

Please sign in to comment.