Commit Graph

17 Commits

Author SHA1 Message Date
Sorin Sbarnea 0cbc0cd524 Replace testr with pytest
Using a single test run orchestrator makes it easier to maintain
the project, especially as pytest is actively maintained.

Change-Id: I5c843984bc0a1b9264e744373e6a3fd9d43e99cd
2020-09-17 15:49:32 +01:00
Sorin Sbarnea c6f07d7f93 Use pytest for queries
Switches queries testing to use of pytest which provides the following:
- test generator for each query (parametrize)
- ability to test a single query test
- generate html report with test results, making easier to investigate
  failures.
- parallel executions
- minor bugfix which prevented running queries from running with py38
  as the  config parser requires only strings (None being invalid).

Change-Id: I982c694a5160a9ecfd117d177d30b911cfe53425
2020-09-10 10:24:37 +00:00
Sorin Sbarnea 01a290f2c0 Enable pylint
- enable pylint execution with current violations temporary disabled
- avoid installing dependencies for linting (heavy)
- pin linters to avoid suprises

Change-Id: Ica47efcec7a4da3b0bf949612cf9f1a49016c488
2020-09-08 12:12:07 +00:00
Sorin Sbarnea f68a8719af Bumped flake8
- Upgraded hacking(flake8)
- Added more modern tox linters environment (pep8 alias)
- Temporary added skips for broken newer rules
- Fixed few basic rule violations
- Moved flake8 config to setup.cfg (tox.ini is not recommended)

Change-Id: I75b3ce5d2ce965a9dc5bdfaa49b2aacd8f0195ad
2020-05-23 08:54:14 +01:00
Sean Mooney 380c2287ad convert docs to PTI
This change converts the repo to the new PTI workflow
and modernises the docs by using the OpenStack docs theme.

Change-Id: I5a3706c7cf40ee0c3405131b89f956bf75cae244
2018-09-20 06:22:02 +00:00
Chuck Short 3d0ea8cd30 Drop mox usage
Mox is not being used anywhere, so remove it.

Change-Id: I66bee0fa0d22e99554eae51c74b149d212ede7ed
Signed-off-by: Chuck Short <chucks@redhat.com>
2018-08-21 21:40:15 -04:00
Sean Mooney 10a4de7647 make sphinx compatible with pbr
- This change increaes the sphinx versions
  to be inline with lower-constratints and
  moderen pbr.
- This change resolves the docs build error.
  "sphinx.errors.SphinxError: Builder name h not registered"

Change-Id: I4dd70bd4e50108028f46d255dfd58cebbf781277
2018-04-06 17:53:49 +00:00
Matthew Treinish b596d06b95
Use modern PBR and hacking packages
The pbr release 2.0.0 is breaking in that it removes the use of
warnerrors in build_sphinux. Hacking <0.11 had a similar issue so
use a newer version of that.

Change-Id: I4b27f38b2962dc70e078b8dbfd23d9df4dc415c3
2017-03-01 15:53:01 -05:00
Swapnil Kulkarni (coolsvap) 3333f2bbb4 Remove discover from test-requirements
It's only needed for python < 2.7 which is not supported

Change-Id: Ie14244f4dfe9ecc13186c90ff53a7b1c188b1133
2016-07-22 04:51:46 +00:00
Sean Dague afba5b2b7e Fix e-r with fixtures 3.0.0
Fixtures 3.0.0 adds another parameter to MonkeyPatch fixture usage
which is some kind of link back to the class being patched out. This
makes the ER code pass under fixtures 3.0.

Change-Id: Id19d0dde8fa558cbf3c76a66430170d0d5b0cd94
2016-06-13 16:10:19 -04:00
Joe Gordon 2b97c0d156 Upgrade to hacking 0.10.x
Fix up issues detected by new version of hacking

Change-Id: Ie12b9f5ccaa1ce5f49ee6bf35d3275bc9dbcbc15
2015-04-30 17:00:22 -07:00
Matt Riedemann 77061b285f Uncap some test requirements
We couldn't see the ImportError in bug
1423431 because we have testtools capped.

This updates the capped test requirements
to match what's currently in global-requirements
so we can see ImportErrors.

Change-Id: Ie69a779c2135ab38dd79050afa2b9c2be10a3bcc
Related-Bug: #1423431
2015-02-18 20:14:47 -08:00
Sergey Lukjanov 972ddf286d Add fingerprint for bug 1274056
It's: "Subunit fails with testtools==0.9.35".

Change-Id: I2f385e737acc729ecec64b5b84b98c4b40a0e85a
2014-01-29 15:48:29 +04:00
Sean Dague 7f42043155 moving readiness checks into stream
this changes the interface to move the readiness check out of
the classifier and into the stream object. This massively
simplifies the logic connecting these pieces, as classifier is
now just a thin wrapper to elastic search.

This also adds unit testing for the stream processing through the
creation of a fake_gerrit mock class. That lets us run gerrit
event interactions in a sane way.

It also drops all the unit testing for the classifier which is now
largely useless, because all it tests is we can execute a for loop.

Change-Id: I1971c121276412e31f01eb5680b9c41fc7e442d3
2014-01-13 20:00:23 -05:00
Clark Boylan fec467b65c Cap Sphinx at <1.2 to avoid distutils problems.
Distutils and Sphinx 1.2 break `python setup.py build_sphinx`. Work
around this by capping Sphinx to <1.2.

Change-Id: I6985aee2f9abec58d7a9bcc9452524527b35a1bc
2013-12-10 16:34:44 -08:00
Matthew Treinish 28af5524bd Add mox fixture to base TestCase
Change-Id: I30b62ba153914cda23bb24683dea7c6441b7ef99
2013-10-01 18:05:33 -04:00
Joe Gordon 639697808e Apply Cookiecutter to the repo.
Make repo support 'tox -epep8' as we want this to be the first gating
check.
Don't make any actual code changes, just change setup and add files.
Further work is needed to re-organize the code, but that can be in a
separate patch.
2013-09-23 15:27:39 -07:00