Mercurial > p > roundup > code
comparison test/rest_common.py @ 5734:5cd9ac3daed7
Fixes for mysql and postgresql primary db.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Sat, 25 May 2019 19:32:18 -0400 |
| parents | 62bdcb874433 |
| children | 9c2e51aae18a |
comparison
equal
deleted
inserted
replaced
| 5733:62bdcb874433 | 5734:5cd9ac3daed7 |
|---|---|
| 642 | 642 |
| 643 # Otk code never passes through the | 643 # Otk code never passes through the |
| 644 # retry loop. Not sure why but I can force it | 644 # retry loop. Not sure why but I can force it |
| 645 # through the loop by setting the internal _db_type | 645 # through the loop by setting the internal _db_type |
| 646 # setting once the db is created by the previous command. | 646 # setting once the db is created by the previous command. |
| 647 self.db.Otk._db_type = whichdb("%s/%s"%(self.db.Otk.dir, self.db.Otk.name)) | 647 try: |
| 648 self.db.Otk._db_type = whichdb("%s/%s"%(self.db.Otk.dir, self.db.Otk.name)) | |
| 649 except AttributeError: | |
| 650 # if dir attribute doesn't exist the primary db is not | |
| 651 # sqlite or anydbm. So don't need to exercise code. | |
| 652 pass | |
| 648 | 653 |
| 649 print("Now realtime start:", datetime.utcnow()) | 654 print("Now realtime start:", datetime.utcnow()) |
| 650 # don't set an accept header; json should be the default | 655 # don't set an accept header; json should be the default |
| 651 # use up all our allowed api calls | 656 # use up all our allowed api calls |
| 652 for i in range(20): | 657 for i in range(20): |
