Running oslotest's tests fail on Python 3.x because of the "import mock"
lines in test_output.py and test_timeout.py. That works for 2.x because
"mock" is an independent package, but in 3.x, it's a part of unittest in
the standard library. This difference is covered in six.moves, which is
where mock is imported from in other test modules.
Change-Id: I3882c2a9be8abc93cf95942579cb9562c6377c01
Closes-Bug: #1607963
Many assertEqual sentences don't follow assertEqual(expected, actual),
These misplaces have 2 impacts:
1, giving confusing messages when some tests failed.
2, mislead other developers, new test modules may follow these wrong pattern.
This patch fix all of them.
Change-Id: Ie9da006cc561e5266812db2bb1c03a624b5e844b
Closes-Bug: #1604213
Now that there is a passing gate job, we can claim support for
Python 3.5 in the classifier. This patch also adds the convenience
py35 venv.
Change-Id: Ifd6a17b8e250f7ff8e36e972e175099044d7146e
Rather than carry implementations of the moved classes in mockpatch,
just reference the symbols. Less maintenance for us.
The tests are removed since fixtures has its own tests.
Change-Id: Iab382a604321e09a01c3d795cd7bcd480dc249ce
This commit adds some .gitignore files. These come from the cookiecutter
repo. We should ignore some coverage, eggs, .venv related files.
Change-Id: I255584d8ae1c557e5529963e54268d5682cec647
Move the tests directory into the package to be consistent with the way
we handle other libraries.
Change-Id: I9527242fe1d6aa0f7177309b05d8d1f5c8ccd396
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
So, calling addCleanup in __init__ is not supported anymore in
latest testtools. This breaks the support we used to have in
the base class that registered mock.patch.stopall right at the
beginning, so classes inheriting would not have to worry about
the cleanup. For Mitaka, we add a hack to make it work by
looking at the underlying _cleanups variable. This clearly needs
to be removed as soon as possible.
Closes-Bug: #1545576
Change-Id: I29a77224bfd9d106c711155e0cfc10eac0e6fe36
We have decided to remove Python 2.6 support, this commit
removes Python 2.6 classifier before dropping any Python
2.6 support in code.
Change-Id: I5fc83f5b61c13cfedaf75f95037c7ff78005c6a6
* Remove support for python 2.6
* Remove install_command : We can just use the
default, we don't need to override
* Remove setenv : We can just use the default as
we don't need any extra environment variables
* Remove requirements.txt from deps, as this is
already added automatically
Change-Id: I4f650eaa07624b889a52570e628a21e905f2bd46
One of the tool modules uses oslo.config, so add it as a dependency so
we get that module in our documentation.
Change-Id: I9096b1d15bad6b643a18d548f23491fd7fe320b2
Remove the contents header from the main index page.
Add a subsection for the release notes and move the history node there
so we do not show every release of the project on the main page.
Change-Id: I0776dac515a4eea751686563511128f422e46788
Tell pbr to automatically generate the API documentation and remove the
hand-curated file doing the same. Move the new API documentation section
to a separate toctree to allow us to only show one level of nodes in the
table of contents.
Change-Id: I8edd36090688a607685d5708f99a78fd235defed
The current value of home-page in setup.cfg file
is launchpad url and is not relevant, so replaced with
oslotest wiki page
Change-Id: Id54400eb1d6a0c697253c8161fe3eff7dccc8344