전환 패리티 테스트와 증적 기준 정의 #6
1 changed files with 14 additions and 0 deletions
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue