Coverage for tests/tests_unit/test_distance.py: 64%
11 statements
« prev ^ index » next coverage.py v7.6.2, created at 2024-10-10 03:02 +0300
« prev ^ index » next coverage.py v7.6.2, created at 2024-10-10 03:02 +0300
1import pytest
2from utils.helper import calculate_ab_distance
5@pytest.fixture
6def a():
7 """latitude, longitude Jankoi"""
8 return 45.713320, 34.392870
11@pytest.fixture
12def b():
13 """Simferopol"""
14 return 44.902607, 34.172082
17def test_calculate_ab_distance(a, b):
18 d = calculate_ab_distance(a[0], a[1], b[0], b[1])
19 assert 80 < d < 110