mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
26 lines
No EOL
654 B
Python
26 lines
No EOL
654 B
Python
import pytest
|
|
|
|
from backend.condition.parsing.factory import select_parser
|
|
from backend.condition.file_type import FileType
|
|
|
|
def test_selects_lbwf_parser():
|
|
# arrange
|
|
file_type = FileType.LBWF
|
|
expected_class_name = "LbwfParser"
|
|
|
|
# act
|
|
actual_class_name = select_parser(file_type).__class__.__name__
|
|
|
|
# assert
|
|
assert expected_class_name == actual_class_name
|
|
|
|
def test_selects_peabody_parser():
|
|
# arrange
|
|
file_type = FileType.Peabody
|
|
expected_class_name = "PeabodyParser"
|
|
|
|
# act
|
|
actual_class_name = select_parser(file_type).__class__.__name__
|
|
|
|
# assert
|
|
assert expected_class_name == actual_class_name |