Skip to content

Commit 5d26c61

Browse files
committed
renamed example_project to example_app
It's an app not a project, so was misleadingly named
1 parent 9b55430 commit 5d26c61

37 files changed

+46
-40
lines changed

piccolo/query/methods/select.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
from piccolo.querystring import QueryString
2020

2121
if t.TYPE_CHECKING:
22-
from piccolo.table import Table # noqa
2322
from piccolo.custom_types import Combinable
23+
from piccolo.table import Table # noqa
2424

2525

2626
class Count(Selectable):

tests/apps/migrations/auto/test_migration_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from piccolo.apps.migrations.commands.base import BaseMigrationManager
77
from piccolo.columns import Varchar
88

9-
from tests.example_project.tables import Manager
9+
from tests.example_app.tables import Manager
1010
from tests.base import DBTestCase
1111
from tests.base import postgres_only
1212

tests/apps/migrations/commands/test_new.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
BaseMigrationManager,
99
)
1010

11-
from tests.example_project.tables import Manager
11+
from tests.example_app.tables import Manager
1212

1313

1414
class TestNewMigrationCommand(TestCase):

tests/columns/test_combination.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import unittest
22

3-
from ..example_project.tables import Band
3+
from ..example_app.tables import Band
44

55

66
class TestWhere(unittest.TestCase):

tests/conf/test_apps.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from piccolo.apps.user.tables import BaseUser
44
from piccolo.conf.apps import AppRegistry, AppConfig, table_finder
55

6-
from ..example_project.tables import Manager
6+
from ..example_app.tables import Manager
77

88

99
class TestAppRegistry(TestCase):
@@ -58,7 +58,7 @@ def test_table_finder(self):
5858
"""
5959
Should return all Table subclasses.
6060
"""
61-
tables = table_finder(modules=["tests.example_project.tables"])
61+
tables = table_finder(modules=["tests.example_app.tables"])
6262

6363
table_class_names = [i.__name__ for i in tables]
6464
table_class_names.sort()
@@ -76,7 +76,7 @@ def test_include_tags(self):
7676
Should return all Table subclasses with a matching tag.
7777
"""
7878
tables = table_finder(
79-
modules=["tests.example_project.tables"], include_tags=["special"]
79+
modules=["tests.example_app.tables"], include_tags=["special"]
8080
)
8181

8282
table_class_names = [i.__name__ for i in tables]
@@ -91,7 +91,7 @@ def test_exclude_tags(self):
9191
Should return all Table subclasses without the specified tags.
9292
"""
9393
tables = table_finder(
94-
modules=["tests.example_project.tables"], exclude_tags=["special"]
94+
modules=["tests.example_app.tables"], exclude_tags=["special"]
9595
)
9696

9797
table_class_names = [i.__name__ for i in tables]

tests/engine/test_nested_transaction.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from piccolo.table import Table
88

99
from ..base import sqlite_only, DBTestCase
10-
from ..example_project.tables import Manager
10+
from ..example_app.tables import Manager
1111

1212

1313
ENGINE_1 = SQLiteEngine(path="engine1.sqlite")

tests/engine/test_pool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import asyncio
22

33
from ..base import DBTestCase, postgres_only
4-
from ..example_project.tables import Manager
4+
from ..example_app.tables import Manager
55

66

77
@postgres_only

tests/engine/test_transaction.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import asyncio
22
from unittest import TestCase
33

4-
from ..example_project.tables import Band, Manager
4+
from ..example_app.tables import Band, Manager
55
from ..base import postgres_only
66

77

tests/example_app/piccolo_app.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
from piccolo.conf.apps import AppConfig
2+
3+
4+
APP_CONFIG = AppConfig(
5+
app_name="example_app", migrations_folder_path="", commands=[]
6+
)

0 commit comments

Comments
 (0)