Skip to content

Commit

Permalink
Add a test testing proper self-install
Browse files Browse the repository at this point in the history
  • Loading branch information
olivier-lacroix committed Apr 2, 2024
1 parent 7bc4d83 commit 4872965
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/flask-hello-world-pyproject/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version = "0.1.0"
description = "Example how to get started with flask in a pixi environment."
readme = "README.md"
requires-python = ">=3.11"
dependencies = ["flask==2.*"]
dependencies = ["flask==2.*", "pytest"]

[build-system]
requires = ["setuptools", "wheel"]
Expand All @@ -20,3 +20,4 @@ flask-hello-world-pyproject = { path = ".", editable = true }

[tool.pixi.tasks]
start = "python -m flask --app flask_hello_world_pyproject.app:app run --port=5050"
test = "pytest -v tests/*"
6 changes: 6 additions & 0 deletions examples/flask-hello-world-pyproject/tests/test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import flask_hello_world_pyproject # noqa: F401


def test_import():
"""Simple test to validate the package itself has been installed."""
assert True

0 comments on commit 4872965

Please sign in to comment.