Skip to content

Commit f8e9e2d

Browse files
committed
fix: disable pytest request tests for DB profile
DB disabled their HAFAS at the moment, so disable the tests for now.
1 parent 7ab3c01 commit f8e9e2d

File tree

5 files changed

+11
-0
lines changed

5 files changed

+11
-0
lines changed

tests/db/request/arrivals_test.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
import datetime
2+
import pytest
23

34
from pyhafas import HafasClient
45
from pyhafas.profile import DBProfile
56

67

8+
@pytest.mark.skip()
79
def test_db_arrivals_request():
810
client = HafasClient(DBProfile())
911
arrivals = client.arrivals(

tests/db/request/departures_test.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
import datetime
2+
import pytest
23

34
from pyhafas import HafasClient
45
from pyhafas.profile import DBProfile
56

67

8+
@pytest.mark.skip()
79
def test_db_departures_request():
810
client = HafasClient(DBProfile())
911
departures = client.departures(

tests/db/request/journey_test.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
import datetime
2+
import pytest
23

34
from pyhafas import HafasClient
45
from pyhafas.profile import DBProfile
56
from pyhafas.types.fptf import Journey
67

78

9+
@pytest.mark.skip()
810
def test_db_journey_request():
911
profile = DBProfile()
1012
client = HafasClient(profile)

tests/db/request/locations_test.py

+3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1+
import pytest
2+
13
from pyhafas import HafasClient
24
from pyhafas.profile import DBProfile
35

46

7+
@pytest.mark.skip()
58
def test_db_locations_request():
69
client = HafasClient(DBProfile())
710
locations = client.locations(term="Köln Messe/Deutz")

tests/db/request/nearby_test.py

+2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
from pyhafas.profile import DBProfile
33
from pyhafas.types.nearby import LatLng
44
from tests.distance import calculate_distance_in_meters
5+
import pytest
56

67

8+
@pytest.mark.skip()
79
def test_db_nearby_request():
810
pos = LatLng(52.523765, 13.369948)
911
client = HafasClient(DBProfile())

0 commit comments

Comments
 (0)