diff --git a/CHANGES.mD b/CHANGES.mD index bed0e08..04d747c 100644 --- a/CHANGES.mD +++ b/CHANGES.mD @@ -1,7 +1,7 @@ Change logs === -## 1.1.0 - 22/10/2019 +## 2.0.0 - 22/10/2019 By @sonofmun diff --git a/tests/test_browse.py b/tests/test_browse.py index e2941b1..a89f6e6 100644 --- a/tests/test_browse.py +++ b/tests/test_browse.py @@ -407,6 +407,15 @@ def r_random(self): len(set(sets)), 1, "Random has been cached and is not recomputed" ) + def test_collection_collection_vs_version(self): + """ Make sure that a work is correctly displayed on the collection template""" + with self.client as c: + r = c.get('/collections/urn:cts:latinLit:phi1294.phi002', follow_redirects=True) + self.assertRegex(r.get_data(as_text=True), '\s+') + # Make sure the read link is not present for a collection + r = c.get('/collections/urn:cts:latinLit:phi1294', follow_redirects=True) + self.assertNotIn(r.get_data(as_text=True), '') + class NemoTestBrowseWithCache(NemoTestBrowse): """ Do the same tests bu with a cache object """