Commit Graph

8 Commits

Author SHA1 Message Date
Rodolfo Alonso Hernandez 2495ebdff9 Remove "nose" library
The library "nose", used for unit testing, is removed. This library
is in maintenance mode and is not compatible with Python3.10 [1].

Now all checks are implemented using "unittest". The methods are not
loaded in realtime into the test case execution; instead of this, this
patch uses "testscenarios.WithScenarios", that allows to execute the
same test with different defined scenarios.

NOTE: "BgpSpeakerTestBase" tests are disable temporarily. It is needed
to configure "docker" in the system in order to execute them.

[1]https://nose.readthedocs.io/en/latest/

Story: #2010063
Task: #45519

Change-Id: I92e9547a26e9bec6c2a9a011c49a70b82dbb373e
2022-07-21 16:02:02 +02:00
Akihiro Motoki 28b0341e48 Fix lower-constraints job
The summary of changes in lower-constraints.txt are as below.

* Address version mismatch of eventlet in requirements.txt and
  lower-constraints.txt. eventlet 0.21.0 is blocked in
  global-requirements.txt, so the min version is set to 0.22.0.
* pytz version in l-c is bumped to satisfy Babel requirement.
* Update the min version of msgpack to 0.5.0 as 0.3.0 is not
  available in PyPI. msgpack-python is dropped as it is not used.
* Drop linter-specific entries from lower-constraints.txt
* hacking in l-c is updated to match the version in test-requirements.

I also ran requirements-check script locally and detected
a lot of inconsistencies in requirements related files in os-ken.
Errors detected by the script are fixed in this commit too.

NOTE: The above inconsistencies were not detected mainly because
we don't have requirements-check job in os-ken CI.
Perhaps it is due to 'tinyrpc' which is not included in g-r.
It is better to enable requirements-check job in os-ken CI,
but we need to add tinyrpc to global-requirements.txt or drop
tinyrpc dependencies (for example, by dropping os-ken/app
as tinyrpc is used only in os-ken/app).

Change-Id: I19617aee765f9086fbfdb67fb17839b83d9df48c
2021-02-10 10:56:49 +09:00
Bernard Cafarelli f61da64144
Fix lower-constraints and pep8 for Focal
Bump lower-constraints to versions supporting python 3.8 and with wheels
available and sync requirements

Bump hacking to 3.2.0 in order to work with Focal, disabling W504
to align with neutron and F405 (similar F403 is already disabled and it
needs a large fix)

Change-Id: I6b6329b2bb7a117f7426fdd63186d321290d9b67
2020-09-16 12:56:36 +02:00
Sean McGinnis 850deafdf2
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: Ifb209347ec1748e143d1e93a5da8f40596cd0e39
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-18 11:56:52 -05:00
Hongbin Lu 28c7fa6aca Add constraint for nose in test requirements
This is a prerequisite to add os-ken into global requirements

Change-Id: Iff68a03fcc7e4e7f94539ec531b251969fbd3d1c
2018-10-29 15:17:27 +00:00
Hongbin Lu e6b05240ea Remove autopep8 and formencode from test-requirements.txt
It looks these dependencies are listed in test requirements but not
used in the code. In addition, they are not included in the openstack
global requirement so this commit removes them from the list.

Change-Id: I61c20979b3bbf9b87a5b7285d11efff6b6e3f923
2018-10-25 15:39:09 +00:00
Hongbin Lu b5be390943 Add minimum constraint for some requirements
The constraints were picked to be the same as neutron for consistency.

Change-Id: I957c144e52e29ec4724b1632eba998c0c4a64b33
2018-10-17 17:59:18 +00:00
Hongbin Lu af2e4fcee4 Apply OpenStack Cookiecutter template
Change-Id: I7172220a2b40cb856080e958bd4a340975449181
2018-09-04 17:00:24 +00:00