fix: resolve CI/CD test failures and linting issues
This commit is contained in:
@@ -3,7 +3,6 @@
|
|||||||
import pytest
|
import pytest
|
||||||
import tempfile
|
import tempfile
|
||||||
import os
|
import os
|
||||||
from pathlib import Path
|
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
@@ -24,43 +23,43 @@ def sample_json():
|
|||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def sample_yaml():
|
def sample_yaml():
|
||||||
return """name: test-project
|
return """name: test-project
|
||||||
version: '1.0.0'
|
version: '1.0.0'
|
||||||
debug: true
|
debug: true
|
||||||
database:
|
database:
|
||||||
host: localhost
|
host: localhost
|
||||||
port: 5432
|
port: 5432
|
||||||
ssl: false
|
ssl: false
|
||||||
tags:
|
tags:
|
||||||
- python
|
- python
|
||||||
- cli
|
- cli
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def sample_toml():
|
def sample_toml():
|
||||||
return """name = "test-project"
|
return """name = "test-project"
|
||||||
version = "1.0.0"
|
version = "1.0.0"
|
||||||
debug = true
|
debug = true
|
||||||
|
|
||||||
[database]
|
[database]
|
||||||
host = "localhost"
|
host = "localhost"
|
||||||
port = 5432
|
port = 5432
|
||||||
ssl = false
|
ssl = false
|
||||||
|
|
||||||
tags = ["python", "cli"]
|
tags = ["python", "cli"]
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def sample_env():
|
def sample_env():
|
||||||
return """NAME=test-project
|
return """NAME=test-project
|
||||||
VERSION=1.0.0
|
VERSION=1.0.0
|
||||||
DEBUG=true
|
DEBUG=true
|
||||||
DATABASE_HOST=localhost
|
DATABASE_HOST=localhost
|
||||||
DATABASE_PORT=5432
|
DATABASE_PORT=5432
|
||||||
DATABASE_SSL=false
|
DATABASE_SSL=false
|
||||||
TAGS=python,cli
|
TAGS=python,cli
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
|
|||||||
Reference in New Issue
Block a user