diff options
author | Petr Viktorin <pviktori@redhat.com> | 2014-10-09 17:03:02 +0200 |
---|---|---|
committer | Tomas Babej <tbabej@redhat.com> | 2014-11-21 12:14:44 +0100 |
commit | dca259afc64647326af16d0dbe0e4c08993d90fb (patch) | |
tree | 98afcf81621fe3c96713b715bb984658c00f1109 /pytest.ini | |
parent | 387b8b46b874f2b3be67226665f2fd89ed342690 (diff) | |
download | freeipa-dca259afc64647326af16d0dbe0e4c08993d90fb.tar.gz freeipa-dca259afc64647326af16d0dbe0e4c08993d90fb.tar.xz freeipa-dca259afc64647326af16d0dbe0e4c08993d90fb.zip |
Configure pytest to run doctests
The pytest.ini file needs to be in or above the directory py.test is called in.
When in IPA project root, this invocation will find ./ipatests/pytest.ini:
py.test ipatests/
but these will not (they're equivalent):
py.test .
py.test
So pytest.ini must be in the project root.
However, setupttols can't include files outside package directories,
so we also need this file to be under ipatests/
Solve the problem by symlinking ./pytest.ini to ipatests/pytest.ini.
https://fedorahosted.org/freeipa/ticket/4610
Reviewed-By: Tomas Babej <tbabej@redhat.com>
Diffstat (limited to 'pytest.ini')
l--------- | pytest.ini | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pytest.ini b/pytest.ini new file mode 120000 index 000000000..e87991b0f --- /dev/null +++ b/pytest.ini @@ -0,0 +1 @@ +ipatests/pytest.ini
\ No newline at end of file |