mirror of
https://github.com/Akkudoktor-EOS/EOS.git
synced 2025-08-25 15:01:14 +00:00
Adapt tests to package directory structure.
Signed-off-by: Bobby Noelte <b0661n0e17e@gmail.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import unittest
|
||||
|
||||
from modules.class_akku import PVAkku
|
||||
from akkudoktoreos.class_akku import PVAkku
|
||||
|
||||
|
||||
class TestPVAkku(unittest.TestCase):
|
||||
|
@@ -1,9 +1,9 @@
|
||||
import pytest
|
||||
|
||||
from modules.class_akku import PVAkku
|
||||
from modules.class_ems import EnergieManagementSystem
|
||||
from modules.class_haushaltsgeraet import Haushaltsgeraet
|
||||
from modules.class_inverter import Wechselrichter # Example import
|
||||
from akkudoktoreos.class_akku import PVAkku
|
||||
from akkudoktoreos.class_ems import EnergieManagementSystem
|
||||
from akkudoktoreos.class_haushaltsgeraet import Haushaltsgeraet
|
||||
from akkudoktoreos.class_inverter import Wechselrichter # Example import
|
||||
|
||||
prediction_hours = 48
|
||||
optimization_hours = 24
|
||||
|
@@ -1,7 +1,7 @@
|
||||
import numpy as np
|
||||
import pytest
|
||||
|
||||
from modules.class_optimize import optimization_problem
|
||||
from akkudoktoreos.class_optimize import optimization_problem
|
||||
|
||||
# Sample known result (replace with the actual expected output)
|
||||
EXPECTED_RESULT = {
|
||||
|
@@ -1,6 +1,6 @@
|
||||
import pytest
|
||||
|
||||
from modules.heatpump import Heatpump
|
||||
from akkudoktoreos.heatpump import Heatpump
|
||||
|
||||
|
||||
@pytest.fixture(scope="function")
|
||||
|
Reference in New Issue
Block a user