Initial upload: ConfigConvert CLI with full test suite and CI/CD
This commit is contained in:
47
tests/fixtures/sample_files.py
vendored
Normal file
47
tests/fixtures/sample_files.py
vendored
Normal file
@@ -0,0 +1,47 @@
|
||||
"""Sample config files for testing."""
|
||||
|
||||
SAMPLE_JSON = """{
|
||||
"name": "test-project",
|
||||
"version": "1.0.0",
|
||||
"debug": true,
|
||||
"database": {
|
||||
"host": "localhost",
|
||||
"port": 5432,
|
||||
"ssl": false
|
||||
},
|
||||
"tags": ["python", "cli"]
|
||||
}
|
||||
"""
|
||||
|
||||
SAMPLE_YAML = """name: test-project
|
||||
version: '1.0.0'
|
||||
debug: true
|
||||
database:
|
||||
host: localhost
|
||||
port: 5432
|
||||
ssl: false
|
||||
tags:
|
||||
- python
|
||||
- cli
|
||||
"""
|
||||
|
||||
SAMPLE_TOML = """name = "test-project"
|
||||
version = "1.0.0"
|
||||
debug = true
|
||||
|
||||
[database]
|
||||
host = "localhost"
|
||||
port = 5432
|
||||
ssl = false
|
||||
|
||||
tags = ["python", "cli"]
|
||||
"""
|
||||
|
||||
SAMPLE_ENV = """NAME=test-project
|
||||
VERSION=1.0.0
|
||||
DEBUG=true
|
||||
DATABASE_HOST=localhost
|
||||
DATABASE_PORT=5432
|
||||
DATABASE_SSL=false
|
||||
TAGS=python,cli
|
||||
"""
|
||||
Reference in New Issue
Block a user