Merge: Fix: Refactor for clean code and portfolio presentation.
This commit is contained in:
BIN
tests/__pycache__/context.cpython-312.pyc
Normal file
BIN
tests/__pycache__/context.cpython-312.pyc
Normal file
Binary file not shown.
@@ -7,4 +7,4 @@ import os
|
||||
import sys
|
||||
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
|
||||
|
||||
import model_gen
|
||||
import business_objects
|
||||
22
tests/end_to_end_test_translation_braille.py
Normal file
22
tests/end_to_end_test_translation_braille.py
Normal file
@@ -0,0 +1,22 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
"""
|
||||
@author: Edward Middleton-Smith
|
||||
"""
|
||||
|
||||
from context import business_objects
|
||||
from business_objects.character_braille import Character_Braille
|
||||
from business_objects.translation_braille import Translation_Braille
|
||||
|
||||
if __name__ == "__main__":
|
||||
braille_translations = Translation_Braille.get_defaults()
|
||||
for braille_translation_row in braille_translations.iterrows():
|
||||
braille_translation_series = braille_translation_row[1]
|
||||
plaintext = braille_translation_series.iloc[0]
|
||||
translation_proficiency_level = braille_translation_series.iloc[1]
|
||||
braille_text = braille_translation_series.iloc[2]
|
||||
|
||||
braille_characters = [Character_Braille(plaintext = plaintext, list_dots_braille = list_dots) for list_dots in braille_text]
|
||||
|
||||
braille_translation = Translation_Braille(plaintext = plaintext, translation_proficiency_level = translation_proficiency_level, braille_text = braille_characters)
|
||||
braille_translation.print()
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
"""
|
||||
@author: Edward Middleton-Smith
|
||||
"""
|
||||
|
||||
from .context import model_gen
|
||||
import model_gen.translation_braille
|
||||
|
||||
model_gen.translation_braille.get_defaults()
|
||||
@@ -1,7 +0,0 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
"""
|
||||
@author: Edward Middleton-Smith
|
||||
"""
|
||||
|
||||
from .context import model_gen
|
||||
|
||||
Reference in New Issue
Block a user