전환 패리티 테스트와 증적 기준 정의 #6
5 changed files with 39 additions and 0 deletions
3
.forge/BAIS-SPRING-QA-001-attempt-1.md
Normal file
3
.forge/BAIS-SPRING-QA-001-attempt-1.md
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
# BAIS-SPRING-QA-001-attempt-1
|
||||||
|
|
||||||
|
Forge 이슈 작업 브랜치 `forge/BAIS-SPRING-QA-001-attempt-1`.
|
||||||
9
tests/conversion_tests/test_boundary.py
Normal file
9
tests/conversion_tests/test_boundary.py
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
import pytest
|
||||||
|
|
||||||
|
@pytest.mark.parametrize('input_data, expected', [
|
||||||
|
('boundary_case_1', 'expected_result_1'),
|
||||||
|
('boundary_case_2', 'expected_result_2')
|
||||||
|
])
|
||||||
|
def test_boundary_conversion(input_data, expected):
|
||||||
|
result = convert(input_data)
|
||||||
|
assert result == expected
|
||||||
14
tests/conversion_tests/test_golden_fixture.py
Normal file
14
tests/conversion_tests/test_golden_fixture.py
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
import pytest
|
||||||
|
|
||||||
|
@pytest.fixture
|
||||||
|
def golden_fixture():
|
||||||
|
return {
|
||||||
|
'input': 'test_input',
|
||||||
|
'expected_output': 'expected_result'
|
||||||
|
}
|
||||||
|
|
||||||
|
def test_golden_conversion(golden_fixture):
|
||||||
|
input_data = golden_fixture['input']
|
||||||
|
expected = golden_fixture['expected_output']
|
||||||
|
result = convert(input_data)
|
||||||
|
assert result == expected
|
||||||
6
tests/conversion_tests/test_output_contract.py
Normal file
6
tests/conversion_tests/test_output_contract.py
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
import pytest
|
||||||
|
|
||||||
|
def test_output_contract_reviewable():
|
||||||
|
output = generate_output()
|
||||||
|
assert output['reviewable'] is True
|
||||||
|
assert 'required_field' in output
|
||||||
7
tests/conversion_tests/test_sql_mapping.py
Normal file
7
tests/conversion_tests/test_sql_mapping.py
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
import pytest
|
||||||
|
|
||||||
|
def test_sql_mapping():
|
||||||
|
sql_query = 'SELECT * FROM conversions WHERE condition'
|
||||||
|
expected_mapping = {'column1': 'mapped_column1', 'column2': 'mapped_column2'}
|
||||||
|
result = execute_sql_mapping(sql_query)
|
||||||
|
assert result == expected_mapping
|
||||||
Loading…
Add table
Add a link
Reference in a new issue