Add test suite for devterm
Some checks failed
CI / test (3.10) (push) Has been cancelled
CI / test (3.11) (push) Has been cancelled
CI / test (3.12) (push) Has been cancelled
CI / test (3.8) (push) Has been cancelled
CI / test (3.9) (push) Has been cancelled
CI / lint (push) Has been cancelled
CI / typecheck (push) Has been cancelled
CI / build-package (push) Has been cancelled
Some checks failed
CI / test (3.10) (push) Has been cancelled
CI / test (3.11) (push) Has been cancelled
CI / test (3.12) (push) Has been cancelled
CI / test (3.8) (push) Has been cancelled
CI / test (3.9) (push) Has been cancelled
CI / lint (push) Has been cancelled
CI / typecheck (push) Has been cancelled
CI / build-package (push) Has been cancelled
This commit is contained in:
28
tests/conftest.py
Normal file
28
tests/conftest.py
Normal file
@@ -0,0 +1,28 @@
|
||||
"""Pytest configuration and fixtures for Devterm tests."""
|
||||
|
||||
import pytest
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def sample_json():
|
||||
return '{"key": "value", "nested": {"data": true}}'
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def sample_jwt():
|
||||
return "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def sample_cron():
|
||||
return "* * * * *"
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def sample_base64_input():
|
||||
return "Hello, World! This is a test."
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def sample_url_input():
|
||||
return "https://example.com/path?query=value&other=test"
|
||||
Reference in New Issue
Block a user