Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support ./setup.py test #42

Merged
merged 1 commit into from
Nov 17, 2015
Merged

Support ./setup.py test #42

merged 1 commit into from
Nov 17, 2015

Conversation

Ichimonji10
Copy link
Contributor

From #2:

The canonical way to run Pulp Smash's unit tests is via the make test command.
This works, but its implementation is entirely ad-hoc. We should consider
supporting the test command provided by setuptools. According to the
documentation
:

The test command runs a project’s unit tests without actually deploying it, by
temporarily putting the project’s source on sys.path, after first running
build_ext -i and egg_info to ensure that any C extensions and project metadata
are up-to-date.

Remove unittest2 from requirements-dev.txt. It is already listed in
setup.py, and the duplication was a bug.

Move mock from requirements-dev.txt to setup.py. This change means that
Pulp Smash has a new base dependency, but this is the only change necessary to
support ./setup.py test, so the change seems worthwhile.

Make Travis test this new command as part of the testing procedure.

Fix #2:

> The canonical way to run Pulp Smash's unit tests is via the `make test` command.
> This works, but its implementation is entirely ad-hoc. We should consider
> supporting the `test` command provided by setuptools. According to [the
> documentation](http://pythonhosted.org/setuptools/setuptools.html#test):
>
> > The test command runs a project’s unit tests without actually deploying it, by
> > temporarily putting the project’s source on sys.path, after first running
> > build_ext -i and egg_info to ensure that any C extensions and project metadata
> > are up-to-date.

Remove `unittest2` from `requirements-dev.txt`. It is already listed in
`setup.py`, and the duplication was a bug.

Move `mock` from `requirements-dev.txt` to `setup.py`. This change means that
Pulp Smash has a new base dependency, but this is the only change necessary to
support `./setup.py test`, so the change seems worthwhile.

Make Travis test this new command as part of the testing procedure.
@Ichimonji10 Ichimonji10 merged commit b0ad37d into pulp:master Nov 17, 2015
@Ichimonji10 Ichimonji10 deleted the setup-test branch November 17, 2015 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant