Skip to content

Commit

Permalink
Do not run pytest tests in tests/spread
Browse files Browse the repository at this point in the history
  • Loading branch information
javierdelapuente committed Oct 23, 2024
1 parent 7945ee3 commit 7267528
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ xfail_strict = true
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
]
addopts = "--ignore=tests/spread"

[tool.coverage.run]
branch = true
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright 2024 Canonical Ltd.
# See LICENSE file for licensing details.

"""Smoke scenario test for Flask."""
"""Smoke scenario test for paas-charm based init templates."""

import os
import pathlib
Expand All @@ -12,7 +12,7 @@


def test_smoke():
"""The only goal of this test is a smoke test, that is, that the charm does not raise."""
"""The purpose of this test is that the charm does not raise on a handled event."""
os.chdir(pathlib.Path(charm.__file__).parent.parent)
ctx = scenario.Context(charm.HelloWorldCharm)
container_name = next(iter(ctx.charm_spec.meta["containers"].keys()))
Expand Down

0 comments on commit 7267528

Please sign in to comment.