Skip to content

Commit 941cea4

Browse files
committed
Refactored test file names to match pytest requirements
1 parent 95f4d4b commit 941cea4

9 files changed

Lines changed: 17 additions & 17 deletions

app/Dockerfile

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ RUN pip3 install -r requirements.txt
1313

1414
# Copy main scripts
1515
COPY evaluation.py ./app/
16-
COPY evaluation_tests.py ./app/
16+
COPY evaluation_test.py ./app/
1717
COPY preview.py ./app/
18-
COPY preview_tests.py ./app/
18+
COPY preview_test.py ./app/
1919

2020
# Copy contexts
2121
COPY context/physical_quantity.py ./app/context/
@@ -30,12 +30,12 @@ COPY preview_implementations/physical_quantity_preview.py ./app/preview_implemen
3030
COPY preview_implementations/symbolic_preview.py ./app/preview_implementations/
3131

3232
# Copy tests
33-
COPY tests/example_tests.py ./app/tests/
34-
COPY tests/physical_quantity_evaluation_tests.py ./app/tests/
35-
COPY tests/physical_quantity_preview_tests.py ./app/tests/
36-
COPY tests/slr_quantity_tests.py ./app/tests/
37-
COPY tests/symbolic_evaluation_tests.py ./app/tests/
38-
COPY tests/symbolic_preview_tests.py ./app/tests/
33+
COPY tests/example_test.py ./app/tests/
34+
COPY tests/physical_quantity_evaluation_test.py ./app/tests/
35+
COPY tests/physical_quantity_preview_test.py ./app/tests/
36+
COPY tests/slr_quantity_test.py ./app/tests/
37+
COPY tests/symbolic_evaluation_test.py ./app/tests/
38+
COPY tests/symbolic_preview_test.py ./app/tests/
3939

4040
# Copy utility code
4141
COPY utility/criteria_graph_utilities.py ./app/utility/
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ class TestEvaluationFunction():
2525
"""
2626

2727
# Import tests that makes sure that mathematical expression comparison works as expected
28-
from .tests.symbolic_evaluation_tests import TestEvaluationFunction as TestSymbolicComparison
28+
from .tests.symbolic_evaluation_test import TestEvaluationFunction as TestSymbolicComparison
2929

3030
# Import tests that makes sure that physical quantities are handled as expected
31-
from .tests.physical_quantity_evaluation_tests import TestEvaluationFunction as TestQuantities
31+
from .tests.physical_quantity_evaluation_test import TestEvaluationFunction as TestQuantities
3232

3333
# Import tests that corresponds to examples in documentation and examples module
34-
from .tests.example_tests import TestEvaluationFunction as TestExamples
34+
from .tests.example_test import TestEvaluationFunction as TestExamples
3535

3636
def test_eval_function_can_handle_latex_input(self):
3737
response = r"\sin x + x^{7}"
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ class TestPreviewFunction():
2525
"""
2626

2727
# Import tests that makes sure that mathematical expression comparison works as expected
28-
from .tests.symbolic_preview_tests import TestPreviewFunction as TestSymbolicComparison
28+
from .tests.symbolic_preview_test import TestPreviewFunction as TestSymbolicComparison
2929

3030
# Import tests that makes sure that physical quantities are handled as expected
31-
from .tests.physical_quantity_preview_tests import TestPreviewFunction as TestQuantityComparison
31+
from .tests.physical_quantity_preview_test import TestPreviewFunction as TestQuantityComparison
3232

3333
def test_empty_latex_expression(self):
3434
response = ""

app/tests/physical_quantity_evaluation_tests.py renamed to app/tests/physical_quantity_evaluation_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import os
33

44
# Import necessary data and reference cases for tests
5-
from .slr_quantity_tests import slr_strict_si_syntax_test_cases, slr_natural_si_syntax_test_cases
5+
from .slr_quantity_test import slr_strict_si_syntax_test_cases, slr_natural_si_syntax_test_cases
66
from ..evaluation import evaluation_function
77
from ..utility.unit_system_conversions import (
88
set_of_SI_prefixes,
@@ -32,7 +32,7 @@ class TestEvaluationFunction():
3232
"""
3333

3434
# Import tests that makes sure that physical quantity parsing works as expected
35-
from .slr_quantity_tests import TestEvaluationFunction as TestStrictSLRSyntax
35+
from .slr_quantity_test import TestEvaluationFunction as TestStrictSLRSyntax
3636

3737
log_details = True
3838

app/tests/physical_quantity_preview_tests.py renamed to app/tests/physical_quantity_preview_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import pytest
33

44
from ..preview_implementations.physical_quantity_preview import preview_function
5-
from .slr_quantity_tests import slr_strict_si_syntax_test_cases, slr_natural_si_syntax_test_cases
5+
from .slr_quantity_test import slr_strict_si_syntax_test_cases, slr_natural_si_syntax_test_cases
66

77

88
class TestPreviewFunction():
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
from ..utility.preview_utilities import Params, extract_latex
55
from ..preview_implementations.symbolic_preview import preview_function
6-
from .symbolic_evaluation_tests import elementary_function_test_cases
6+
from .symbolic_evaluation_test import elementary_function_test_cases
77

88

99
class TestPreviewFunction():

0 commit comments

Comments
 (0)