Commit 02fbaa98 authored by Jesse VanderWees's avatar Jesse VanderWees 🐘

remove pyfmi references in simulation tests

parent 263627f4
from rtctools.simulation.simulation_problem import SimulationProblem from rtctools.simulation.simulation_problem import SimulationProblem
from rtctools.simulation.pi_mixin import PIMixin from rtctools.simulation.pi_mixin import PIMixin
from pyfmi.fmi_algorithm_drivers import FMICSAlgOptions
import os import os
import re import re
import numpy as np import numpy as np
...@@ -9,8 +8,6 @@ import collections ...@@ -9,8 +8,6 @@ import collections
from .data_path import data_path from .data_path import data_path
from test_case import TestCase from test_case import TestCase
import pyfmi
class SimulationTestProblem(PIMixin, SimulationProblem): class SimulationTestProblem(PIMixin, SimulationProblem):
#pi_validate_timeseries = False #pi_validate_timeseries = False
def __init__(self): def __init__(self):
......
from rtctools.simulation.simulation_problem import SimulationProblem from rtctools.simulation.simulation_problem import SimulationProblem
from pyfmi.fmi_algorithm_drivers import FMICSAlgOptions
import os import os
import re import re
import numpy as np import numpy as np
...@@ -8,8 +7,6 @@ import collections ...@@ -8,8 +7,6 @@ import collections
from .data_path import data_path from .data_path import data_path
from test_case import TestCase from test_case import TestCase
import pyfmi
class SimulationTestProblem(SimulationProblem): class SimulationTestProblem(SimulationProblem):
def __init__(self): def __init__(self):
super().__init__(input_folder=data_path(), output_folder=data_path( super().__init__(input_folder=data_path(), output_folder=data_path(
...@@ -22,10 +19,6 @@ class TestSimulation(TestCase): ...@@ -22,10 +19,6 @@ class TestSimulation(TestCase):
def test_object(self): def test_object(self):
self.assertIsInstance(self.problem, SimulationTestProblem) self.assertIsInstance(self.problem, SimulationTestProblem)
def test_options(self):
options = self.problem.get_options()
self.assertIsInstance(options, FMICSAlgOptions)
def test_get_variables(self): def test_get_variables(self):
all_variables = self.problem.get_variables() all_variables = self.problem.get_variables()
self.assertIsInstance(all_variables, collections.OrderedDict) self.assertIsInstance(all_variables, collections.OrderedDict)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment