Skip to content

Commit b5891db

Browse files
committed
fix a few tests
1 parent 951f8d0 commit b5891db

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

tests/test_feeds_global_landing_pages.py

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -30,23 +30,23 @@
3030
# Continents
3131
'africa': 15,
3232
'antarctica': 2,
33-
'asia': 23,
34-
'australia': 6,
35-
'europe': 17,
33+
'asia': 24,
34+
'australia': 7,
35+
'europe': 19,
3636
'north-america': 14,
37-
'oceania': 5,
37+
'oceania': 6,
3838
'south-america': 8,
3939
# Oceans
40-
'arctic-ocean': 5,
41-
'baltic-sea': 2, # Baltic Sea + monitoring buoy
42-
'indian-ocean': 11,
43-
'mediterranean-region': 3, # Mediterranean + monitoring buoy + triangular survey
44-
'north-atlantic-ocean': 18,
45-
'north-pacific-ocean': 13,
46-
'south-atlantic-ocean': 10,
47-
'south-china-and-easter-archipelagic-seas': 2, # South China Seas + monitoring buoy
40+
'arctic-ocean': 9,
41+
'baltic-sea': 6,
42+
'indian-ocean': 17,
43+
'mediterranean-region': 13,
44+
'north-atlantic-ocean': 21,
45+
'north-pacific-ocean': 18,
46+
'south-atlantic-ocean': 12,
47+
'south-china-and-easter-archipelagic-seas': 9,
4848
'south-pacific-ocean': 8,
49-
'southern-ocean': 5,
49+
'southern-ocean': 6,
5050
}
5151

5252

@@ -65,7 +65,7 @@ def slugify(self, name):
6565

6666
def test_global_region_load(self):
6767
regions = GlobalRegion.objects.all()
68-
self.assertEqual(len(regions), 17) # 7 continents + 10 oceans
68+
self.assertEqual(len(regions), 18) # 8 continents + 10 oceans
6969

7070
def test_georss_feed_per_region(self):
7171
for region in GlobalRegion.objects.all():
@@ -110,8 +110,8 @@ def test_geoatom_feed_australia(self):
110110
titles = [entry.find("atom:title", namespaces=NSPS).text
111111
for entry in root.findall(".//atom:entry", namespaces=NSPS)]
112112

113-
self.assertEqual(len(titles), 6, "Atom feed for Australia should return 6 entries")
114-
self.assertEqual(titles[0], "Migration Route: Asia to Australia", "Atom feed for Australia returned unexpected title")
113+
self.assertEqual(len(titles), 7, "Atom feed for Australia should return 7 entries")
114+
self.assertEqual(titles[0], "Marine Biology and Oceanography of the South China and Easter Archipelagic Seas", "Atom feed for Australia returned unexpected title")
115115

116116
def test_georss_feed_south_atlantic(self):
117117
# Use new API v1 GeoRSS endpoint
@@ -123,9 +123,9 @@ def test_georss_feed_south_atlantic(self):
123123
titles = [item.find("title").text
124124
for item in root.findall(".//item", namespaces=NSPS)]
125125

126-
self.assertEqual(len(titles), 10, "GeoRSS feed for South Atlantic Ocean should return 10 entries")
127-
self.assertEqual(titles[0], "Marine Biology and Oceanography of the Southern Ocean", "GeoRSS feed for South Atlantic Ocean returned unexpected first title")
128-
self.assertEqual(titles[9], "Global Climate Network", "GeoRSS feed for South Atlantic Ocean returned unexpected last title")
126+
self.assertEqual(len(titles), 12, "GeoRSS feed for South Atlantic Ocean should return 12 entries")
127+
self.assertEqual(titles[0], "Pan-Pacific Study", "GeoRSS feed for South Atlantic Ocean returned unexpected first title")
128+
self.assertEqual(titles[11], "Seismic Survey: Mid-Atlantic Ridge", "GeoRSS feed for South Atlantic Ocean returned unexpected last title")
129129

130130

131131
def test_all_continent_pages_display_correct_work_counts(self):

0 commit comments

Comments
 (0)