#201 fix unit tests in RPM build
Merged 5 years ago by ralph. Opened 5 years ago by dcallagh.
dcallagh/greenwave conftest-in-tarball  into  master

fix unit tests in RPM build
Dan Callaghan • 5 years ago  
file modified
+1 -1
@@ -1,6 +1,6 @@ 

  global-exclude *.pyc *.pyo

  include COPYING README.md requirements.txt dev-requirements.txt

- include pytest.ini

+ include pytest.ini conftest.py

  include run-dev-server.py

  include tox.ini

  include fedmsg.d/*.py

file modified
+1 -1
@@ -73,7 +73,7 @@ 

  

  %check

  export PYTHONPATH=%{buildroot}/%{python2_sitelib}

- GREENWAVE_CONFIG=$(pwd)/conf/settings.py.example py.test greenwave/tests/

+ py.test greenwave/tests/

  

  %files

  %license COPYING

PR#199 broke the tests inside the RPM build, because now we are calling
create_app(), and it was unintentionally loading a production config
instead of a testing config.

The fix for that is really PR#192 but that was not taking effect because
the conftest.py file in the root directory was not being included in the
source tarballs.

Pull-Request has been merged by ralph

5 years ago
Metadata