Skip to content

Commit

Permalink
Merge branch 'main' into emissionfactors-2024
Browse files Browse the repository at this point in the history
  • Loading branch information
han16nah committed May 6, 2024
2 parents 9623fba + 7b0cba7 commit 3dcaa80
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions tests/functional/test_calculate.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,14 @@
- calc_co2_electricity,
- calc_co2_heating,
"""
from typing import Dict

import pytest

from co2calculator import calculate as candidate


# NOTE: Those tests are currently more integration tests since they talk to
# openrouteservice.org when executing.

# TODO: Mock all calls to openrouteservice.org (or openrouteservice package)

class TestCalculateCommuting:
"""Functional testing of `calc_co2_commuting` calls from backend"""

@pytest.mark.skip(reason="Functions are deprecated")
@pytest.mark.parametrize(
"transportation_mode,expected_emissions",
[
Expand All @@ -50,4 +42,4 @@ def test_calc_co2_commuting(
transportation_mode=transportation_mode, weekly_distance=42
)

assert round(actual_emissions, 2) == expected_emissions
assert isinstance(actual_emissions, float)

0 comments on commit 3dcaa80

Please sign in to comment.