xuanyandong
fea43c4dd2
Remove Six
...
Change-Id: I0a7a770165f4841ab5d81cb13645c063aedccebf
2021-01-02 10:25:29 +08:00
Zuul
599e92589a
Merge "Stop to use the __future__ module."
2020-11-04 15:39:07 +00:00
Ghanshyam Mann
2409d79d62
Use unittest.mock instead of third party mock
...
Now that we no longer support py27, we can use the standard library
unittest.mock module instead of the third party mock lib.
Change-Id: I4869426a4c39071a9e6d60c02ed13f8e5bb72536
2020-08-01 14:44:56 -05:00
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
Dong Ma
a4ff5c214f
Add unit tests for shell.py
...
This commit try to add unit tests for shell.py. Also find a bug
in parse_args if not set the config file.
Change-Id: I73a80b238ec95073fc64698655c045fc88ba352a
2016-12-05 05:06:51 -08:00
Jenkins
cc9bd26949
Merge "Add test_type option to shell cli"
2016-11-16 05:27:39 +00:00
Masayuki Igawa
8d53a4b0cb
Add test_type option to shell cli
...
This commit adds a test_type option to the cli.
Change-Id: I7be6684bab88ff02e3d4ec80352c599388a81cb2
2016-11-16 14:18:29 +09:00
Masayuki Igawa
6bd8163419
Remove comment out code
...
This commit removes comment out codes to keep code clean.
Change-Id: Ib280b0d039e1a47459d68f0f4d2096418a2ea5ef
2016-11-15 14:09:07 +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
a760eb18ad
Add test_type param to create_coverage()
2016-11-07 16:48:38 +09:00
Masayuki Igawa
130a0335c0
Remove oslo_db dependency
2016-11-07 16:46:09 +09:00
Masayuki Igawa
f496c95108
Fix pep8 errors
2016-11-04 16:30:12 +09:00
Masayuki Igawa
d0bc83a49c
Add stdin acceptance logic to the shell.py
2016-10-21 17:51:30 +09:00
Masayuki Igawa
73e9fe8464
Add usage to README and make coverage file positional
2016-10-20 16:40:14 +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
ec29a3d956
Add adding data feature
2016-04-21 16:40:45 +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
Masayuki Igawa
c5f72789a3
Initial Cookiecutter Commit.
2016-04-19 12:24:29 +09:00