WIP: cálculo de impacto ambiental #59

Draft
pedro wants to merge 91 commits from feature/f31-device-enviromental-impact into main
6 changed files with 9 additions and 4 deletions
Showing only changes of commit 8f206340f3 - Show all commits

View file

@ -1,7 +1,7 @@
from __future__ import annotations from __future__ import annotations
from typing import TYPE_CHECKING from typing import TYPE_CHECKING
from .dummy_calculator import DummyEnvironmentalImpactAlgorithm from .dummy_algo.dummy_calculator import DummyEnvironmentalImpactAlgorithm
if TYPE_CHECKING: if TYPE_CHECKING:
from .algorithm_interface import EnvironmentImpactAlgorithm from .algorithm_interface import EnvironmentImpactAlgorithm

View file

@ -0,0 +1,5 @@
# TEST DOCS
This is a test mardkown docs for the dummy algorithm.
It also renders latex! $x^2$

View file

@ -1,5 +1,5 @@
from device.models import Device from device.models import Device
from .algorithm_interface import EnvironmentImpactAlgorithm from ..algorithm_interface import EnvironmentImpactAlgorithm
from environmental_impact.models import EnvironmentalImpact from environmental_impact.models import EnvironmentalImpact

View file

@ -3,7 +3,7 @@ import uuid
from django.test import TestCase from django.test import TestCase
from device.models import Device from device.models import Device
from environmental_impact.models import EnvironmentalImpact from environmental_impact.models import EnvironmentalImpact
from environmental_impact.algorithms.dummy_calculator import DummyEnvironmentalImpactAlgorithm from environmental_impact.algorithms.dummy_algo.dummy_calculator import DummyEnvironmentalImpactAlgorithm
from evidence.models import Evidence from evidence.models import Evidence

View file

@ -1,6 +1,6 @@
from environmental_impact.algorithms.algorithm_factory import FactoryEnvironmentImpactAlgorithm from environmental_impact.algorithms.algorithm_factory import FactoryEnvironmentImpactAlgorithm
from django.test import TestCase from django.test import TestCase
from environmental_impact.algorithms.dummy_calculator import DummyEnvironmentalImpactAlgorithm from environmental_impact.algorithms.dummy_algo.dummy_calculator import DummyEnvironmentalImpactAlgorithm
class FactoryEnvironmentImpactAlgorithmTests(TestCase): class FactoryEnvironmentImpactAlgorithmTests(TestCase):