Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

👷 CI Change for semantic #246

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ upload_to_vcs_release = true
version_variables = ["pyproject.toml:version","findmyorder/__init__.py:__version__"]
build_command = "pip install poetry && poetry build"
commit_parser = "emoji"

[tool.semantic_release.commit_parser_options]
major_tags = [
"BREAKING",
"💥",
Expand Down
16 changes: 0 additions & 16 deletions tests/test_unit.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,19 +218,3 @@ async def test_contains_emoji(fmo,order_with_emoji):
result = await fmo.contains_emoji(order_with_emoji)
assert result is True


@pytest.mark.asyncio
async def test_exception_handling():
# Simulate an exception
def func_that_raises():
raise ValueError("Test error")

# Call the function and verify that it returns None
result = None
try:
result = func_that_raises()
except Exception:
result = None

# Check that the function returned None
assert result is None
Loading