Skip to content

Commit c630bf3

Browse files
test: add conftest, init, and fix linting error
1 parent 35514bc commit c630bf3

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

{{cookiecutter.project_slug}}/tests/__init__.py

Whitespace-only changes.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import sys
2+
from pathlib import Path
3+
4+
# Add project root to path
5+
project_root = Path(__file__).parent.parent
6+
sys.path.insert(0, str(project_root))

{{cookiecutter.project_slug}}/tests/test_placeholder.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import pytest
22

3+
34
def test_placeholder(capfd):
45
"""
56
Boilerplate test to allow for GitHub Actions to run.

0 commit comments

Comments
 (0)