summaryrefslogtreecommitdiff
path: root/docs/tutorials/wiki2/src/tests/README.md
diff options
context:
space:
mode:
authorMichael Merickel <github@m.merickel.org>2024-02-07 21:02:40 -0700
committerGitHub <noreply@github.com>2024-02-07 21:02:40 -0700
commit03e2e439f263aca7d4efa8173c0bbc4aacb8a3c2 (patch)
treea052858496fce4e03b16098cc11e9b8a0aba1617 /docs/tutorials/wiki2/src/tests/README.md
parent53eb7e7cc6b7bfdedb4df4821af66619bebf909c (diff)
parent222386e96a1711b6215f64ea809a9f4a7a8c2202 (diff)
downloadpyramid-03e2e439f263aca7d4efa8173c0bbc4aacb8a3c2.tar.gz
pyramid-03e2e439f263aca7d4efa8173c0bbc4aacb8a3c2.tar.bz2
pyramid-03e2e439f263aca7d4efa8173c0bbc4aacb8a3c2.zip
Merge pull request #3747 from Pylons/wiki2-sqla-2.0
upgrade the wiki2 tutorial with the new cookiecutter updates
Diffstat (limited to 'docs/tutorials/wiki2/src/tests/README.md')
-rw-r--r--docs/tutorials/wiki2/src/tests/README.md60
1 files changed, 60 insertions, 0 deletions
diff --git a/docs/tutorials/wiki2/src/tests/README.md b/docs/tutorials/wiki2/src/tests/README.md
new file mode 100644
index 000000000..5ac1209d0
--- /dev/null
+++ b/docs/tutorials/wiki2/src/tests/README.md
@@ -0,0 +1,60 @@
+# myproj
+
+## Getting Started
+
+- Change directory into your newly created project if not already there. Your
+ current directory should be the same as this `README.md` file and `pyproject.toml`.
+
+ ```
+ cd tutorial
+ ```
+
+- Create a Python virtual environment, if not already created.
+
+ ```
+ python3 -m venv env
+ ```
+
+- Upgrade packaging tools, if necessary.
+
+ ```
+ env/bin/pip install --upgrade pip
+ ```
+
+- Install the project in editable mode with its testing requirements.
+
+ ```
+ env/bin/pip install -e ".[testing]"
+ ```
+
+- Initialize and upgrade the database using Alembic.
+
+ - Generate your first revision.
+
+ ```
+ env/bin/alembic -c development.ini revision --autogenerate -m "init"
+ ```
+
+ - Upgrade to that revision.
+
+ ```
+ env/bin/alembic -c development.ini upgrade head
+ ```
+
+- Load default data into the database using a script.
+
+ ```
+ env/bin/initialize_tutorial_db development.ini
+ ```
+
+- Run your project's tests.
+
+ ```
+ env/bin/pytest
+ ```
+
+- Run your project.
+
+ ```
+ env/bin/pserve development.ini
+ ```