init
This commit is contained in:
7
{{cookiecutter.project_slug}}/tests/conftest.py
Normal file
7
{{cookiecutter.project_slug}}/tests/conftest.py
Normal file
@@ -0,0 +1,7 @@
|
||||
import os
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
# Add the src directory to the Python path
|
||||
src_path = Path(__file__).parent.parent / "app"
|
||||
sys.path.insert(0, str(src_path))
|
||||
10
{{cookiecutter.project_slug}}/tests/test_config.py
Normal file
10
{{cookiecutter.project_slug}}/tests/test_config.py
Normal file
@@ -0,0 +1,10 @@
|
||||
from pathlib import Path
|
||||
|
||||
import pytest
|
||||
|
||||
from app.core.config import Settings
|
||||
|
||||
|
||||
def test_settings_default_values():
|
||||
settings = Settings()
|
||||
assert settings.APP_NAME == "{{ cookiecutter.project_name }}"
|
||||
Reference in New Issue
Block a user