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

chore: Refine template tests #159

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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: 0 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

from __future__ import annotations

from typing import List

import pytest
from _pytest.nodes import Item

Expand Down
6 changes: 3 additions & 3 deletions tests/test_methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
def hello_test():
"""
This defines the expected usage, which can then be used in various test cases.
Pytest will not execute this code directly, since the function does not contain the suffex "test"
Pytest will not execute this code directly, since the function does not contain the prefix "test"
"""
hello_world()
assert hello_world() == "string-0"


def test_hello(unit_test_mocks: None):
Expand All @@ -26,7 +26,7 @@ def test_hello(unit_test_mocks: None):

def test_int_hello():
"""
This test is marked implicitly as an integration test because the name contains "_init_"
This test is marked implicitly as an integration test because the name contains "_int_"
https://docs.pytest.org/en/6.2.x/example/markers.html#automatically-adding-markers-based-on-test-names
"""
hello_test()
Loading