Commit Graph

13 Commits

Author SHA1 Message Date
Hervé Beraud 12b53e108a Stop to use the __future__ module.
The __future__ module [1] was used in this context to ensure compatibility
between python 2 and python 3.

We previously dropped the support of python 2.7 [2] and now we only support
python 3 so we don't need to continue to use this module and the imports
listed below.

Imports commonly used and their related PEPs:
- `division` is related to PEP 238 [3]
- `print_function` is related to PEP 3105 [4]
- `unicode_literals` is related to PEP 3112 [5]
- `with_statement` is related to PEP 343 [6]
- `absolute_import` is related to PEP 328 [7]

[1] https://docs.python.org/3/library/__future__.html
[2] https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html
[3] https://www.python.org/dev/peps/pep-0238
[4] https://www.python.org/dev/peps/pep-3105
[5] https://www.python.org/dev/peps/pep-3112
[6] https://www.python.org/dev/peps/pep-0343
[7] https://www.python.org/dev/peps/pep-0328

Change-Id: I46f1872407495af231e65cfe784cee731b345f3b
2020-06-02 20:09:13 +02:00
Andreas Jaeger 77cdf205d4 Update hacking for Python3
The repo is Python 3 now, so update hacking to version 2.0 which
supports Python 3.

fix issues found by flake8.

Change-Id: I2f14cb6f67a0c9b4c0dcbf8d93c26eb99b9b9d33
2020-03-28 10:47:17 +01:00
Masayuki Igawa 52c7cfde08
Add metadata column to coverage table
This commit adds metadata column to the coverage table. This should be
useful to filter results in the future.

Change-Id: I224d340b70ddd2c3cf7923f517281020470a9e45
2019-04-18 16:17:36 +09:00
Masayuki Igawa 856a9739da
Add files table
This commit adds 'files' table. This files table has coverage_id
column as a foreign key for the coverages table. And this commit also
adds a release note for it.

Change-Id: I8998a79a1ba79bbdab1cd79810cc85bcbccbe7d8
2017-03-08 18:39:32 +09:00
Masayuki Igawa ff8f03ece5
Fix coverage2sql-db-manage to read config
This commit fixes coverage2sql-db-manage to read config file correctly.
In the previous version, coverage2sql-db-manage command doesn't work.
I'm not sure when it didn't work, though.

Change-Id: If3bb93a661a723b0ff0eedf9f0ed84c2af8d88e6
2017-02-03 16:27:51 +09:00
Masayuki Igawa 6390a0086d Add get_coverage()
Checking the unexpected records.

Change-Id: I22aa3aa528259ede949df935993a6d1ce24ca7fd
2016-11-11 19:27:20 +09:00
Masayuki Igawa e22975ab47 Add unit tests and remove oslo_db
This commit adds unit tests and removes oslo_db dependency.

Change-Id: I735044fbebefcea2f73b6431e55b9c67f5508c17
2016-11-11 11:33:43 +09:00
Masayuki Igawa f496c95108 Fix pep8 errors 2016-11-04 16:30:12 +09:00
Masayuki Igawa 33a6c63ac3 Add test_type column 2016-10-19 18:09:02 +09:00
Masayuki Igawa 36ceae8ef8 Add index to migration file 2016-04-21 17:18:33 +09:00
Masayuki Igawa 7eb7a495e8 Make migration's downgrade() NotImplementedError 2016-04-20 16:57:22 +09:00
Masayuki Igawa 229903b43d Add __init__.py to migrations 2016-04-19 19:06:03 +09:00
Masayuki Igawa 2d3cbedc89 Add migration and shell 2016-04-19 19:00:55 +09:00