Skip to content

Commit 7b84994

Browse files
committed
fixed lint
1 parent 51c65e6 commit 7b84994

File tree

3 files changed

+3
-10
lines changed

3 files changed

+3
-10
lines changed

api/src/scripts/populate_db_gtfs.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
import pycountry
66
import pytz
7-
from sqlalchemy import func
87

98
from scripts.load_dataset_on_create import publish_all
109
from scripts.populate_db import DatabasePopulateHelper, set_up_configs
@@ -15,7 +14,6 @@
1514
Gtfsrealtimefeed,
1615
Location,
1716
Redirectingid,
18-
Gtfsfeed,
1917
)
2018
from utils.data_utils import set_up_defaults
2119

@@ -142,7 +140,7 @@ def process_feed_references(self, session: "Session"):
142140
already_referenced_ids = {ref.id for ref in gtfs_feed.gtfs_rt_feeds}
143141
if gtfs_feed and gtfs_rt_feed.id not in already_referenced_ids:
144142
gtfs_rt_feed.gtfs_feeds = [gtfs_feed]
145-
#gtfs_feed.gtfs_rt_feeds.append(gtfs_rt_feed) # Flush to avoid FK violation
143+
# gtfs_feed.gtfs_rt_feeds.append(gtfs_rt_feed) # Flush to avoid FK violation
146144
session.flush()
147145

148146
def process_redirects(self, session: "Session"):

api/src/shared/db_models/gtfs_rt_feed_impl.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import logging
22

33
from sqlalchemy.orm import Session
4-
from sqlalchemy import func
54

65
from shared.database.database import with_db_session
76
from shared.db_models.feed_impl import FeedImpl

api/tests/integration/populate_tests/test_populate.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ def test_is_official_overwrite(client: TestClient, values):
5454
json_response = response.json()
5555
assert json_response["official"] is expected_official, values["assert_fail_message"]
5656

57+
5758
def test_is_feed_reference_overwrite(client: TestClient):
5859
feed_id = "mdb-1562"
5960
response = client.request(
@@ -71,9 +72,4 @@ def test_is_feed_reference_overwrite(client: TestClient):
7172
headers=authHeaders,
7273
)
7374
json_response = response.json()
74-
assert json_response["feed_references"] == ["mdb-50"]
75-
76-
77-
78-
79-
75+
assert json_response["feed_references"] == ["mdb-50"]

0 commit comments

Comments
 (0)