Anonymous avatar Anonymous committed ca59c3d

[tests/functional][xs]: remove 'DB' from title test string as this is no longer in site title (thereby correcting failing tests!).

Comments (0)

Files changed (3)

pdw/tests/functional/test_item.py

     def test_index(self):
         offset = url_for(controller='item', action='index')
         res = self.app.get(offset) 
-        res.mustcontain('Public Domain Works DB - Items - Index')
+        res.mustcontain('Public Domain Works - Items - Index')
 
     def test_read(self):
         cid = swiss.compress_uuid(self.fxt_performance.id)
         offset = url_for(controller='item', action='read', compressed_id=cid, readable_id=self.fxt_performance.readable_id)
         res = self.app.get(offset) 
-        res.mustcontain('Public Domain Works DB - Items - ')
+        res.mustcontain('Public Domain Works - Items - ')
         res.mustcontain('Item: %s' % self.fxt_performance.title)
         # res.mustcontain('Work: ')
         # res.mustcontain(self.fxt_performance.work.title)

pdw/tests/functional/test_person.py

     def test_index(self):
         offset = url_for(controller='person', action='index')
         res = self.app.get(offset) 
-        res.mustcontain('Public Domain Works DB - Persons - Index')
+        res.mustcontain('Public Domain Works - Persons - Index')
         assert 'Search' in res, res
 
     def test_read_404(self):
         offset = url_for(controller='person', action='read', compressed_id=cid, readable_id=self.fxt_person.readable_id)
         print offset
         res = self.app.get(offset) 
-        res.mustcontain('Public Domain Works DB - Persons - %s' %
+        res.mustcontain('Public Domain Works - Persons - %s' %
                 self.fxt_person.name)
         res.mustcontain('Person: %s' % self.fxt_person.name)
         # res.mustcontain('Date of Death:')
         print "cID", cid 
         offset = url_for(controller='person', action='read', compressed_id=cid, readable_id=self.fxt_person.readable_id)
         res = self.app.get(offset) 
-        res.mustcontain('Public Domain Works DB - Persons - %s' %
+        res.mustcontain('Public Domain Works - Persons - %s' %
                 self.fxt_person.name)
         res.mustcontain('<h3>Works')
         res.mustcontain(self.fxt_work.title)
     def test_person_link(self):
         offset = url_for(controller='person', action='list', id=0)
         res = self.app.get(offset)
-        res.mustcontain('Public Domain Works DB - Persons - Index')
+        res.mustcontain('Public Domain Works - Persons - Index')
         res.mustcontain("Dhonncha, Se\xc3\x83\xc2\xa1n \'Ac")
 
 

pdw/tests/functional/test_work.py

     def test_index(self):
         offset = url_for(controller='work', action='index')
         res = self.app.get(offset) 
-        res.mustcontain('Public Domain Works DB - Works - Index')
+        res.mustcontain('Public Domain Works - Works - Index')
 
     def test_read(self):
         cid = swiss.compress_uuid(self.fxt_work.id)
         offset = url_for(controller='work', action='read', compressed_id=cid, readable_id=self.fxt_work.readable_id)
         res = self.app.get(offset) 
-        res.mustcontain('Public Domain Works DB - Works - %s' % self.fxt_work.title)
+        res.mustcontain('Public Domain Works - Works - %s' % self.fxt_work.title)
         res.mustcontain('Work: %s' % self.fxt_work.title) 
 
     def test_works_link(self):
         cid = swiss.compress_uuid(self.fxt_work.id)
         offset = url_for(controller='work', action='read', compressed_id=cid, readable_id=self.fxt_work.readable_id)
         res = self.app.get(offset) 
-        res.mustcontain('Public Domain Works DB - Works - %s' % self.fxt_work.title)
+        res.mustcontain('Public Domain Works - Works - %s' % self.fxt_work.title)
         res.mustcontain('<h3>Creators')
         res.mustcontain(self.fxt_person.name)
         res.mustcontain('<h3>Items')
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.