Skip to content

Commit 200ba79

Browse files
committed
make sure fixtures is used everywhere
1 parent 0255608 commit 200ba79

File tree

13 files changed

+12
-12
lines changed

13 files changed

+12
-12
lines changed

CHANGES

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ requirements.
1717

1818
0.46.0
1919
------
20-
Added the fixture app. This is used to dump data from a database to a JSON
20+
Added the fixtures app. This is used to dump data from a database to a JSON
2121
file, and then reload it again. It's useful for seeding a database with
2222
essential data, whether that's a colleague setting up their local environment,
2323
or deploying to production.

docs/src/piccolo/projects_and_apps/included_apps.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ Lets you scaffold an ASGI web app. See :ref:`ASGICommand`.
3838
3939
-------------------------------------------------------------------------------
4040

41-
fixture
42-
~~~~~~~
41+
fixtures
42+
~~~~~~~~
4343

4444
Fixtures are used when you want to seed your database with essential data (for
4545
example, country names).
@@ -66,7 +66,7 @@ a subset of apps and tables instead, for example:
6666

6767
.. code-block:: bash
6868
69-
piccolo fixture dump --apps=blog --tables=Post > fixtures.json
69+
piccolo fixtures dump --apps=blog --tables=Post > fixtures.json
7070
7171
# Or for multiple apps / tables
7272
piccolo fixtures dump --apps=blog,shop --tables=Post,Product > fixtures.json
@@ -75,7 +75,7 @@ To load the fixture:
7575

7676
.. code-block:: bash
7777
78-
piccolo fixture load fixtures.json
78+
piccolo fixtures load fixtures.json
7979
8080
-------------------------------------------------------------------------------
8181

File renamed without changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import typing as t
44

5-
from piccolo.apps.fixture.commands.shared import (
5+
from piccolo.apps.fixtures.commands.shared import (
66
FixtureConfig,
77
create_pydantic_fixture_model,
88
)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from __future__ import annotations
22

3-
from piccolo.apps.fixture.commands.shared import (
3+
from piccolo.apps.fixtures.commands.shared import (
44
FixtureConfig,
55
create_pydantic_fixture_model,
66
)

piccolo/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
from piccolo.apps.app.piccolo_app import APP_CONFIG as app_config
1414
from piccolo.apps.asgi.piccolo_app import APP_CONFIG as asgi_config
15-
from piccolo.apps.fixture.piccolo_app import APP_CONFIG as fixture_config
15+
from piccolo.apps.fixtures.piccolo_app import APP_CONFIG as fixtures_config
1616
from piccolo.apps.meta.piccolo_app import APP_CONFIG as meta_config
1717
from piccolo.apps.migrations.commands.check import CheckMigrationManager
1818
from piccolo.apps.migrations.piccolo_app import APP_CONFIG as migrations_config
@@ -61,7 +61,7 @@ def main():
6161
for _app_config in [
6262
app_config,
6363
asgi_config,
64-
fixture_config,
64+
fixtures_config,
6565
meta_config,
6666
migrations_config,
6767
playground_config,

0 commit comments

Comments
 (0)