#4741 dev-data.py should be included in the release tarball
Opened 4 years ago by sergiodj. Modified 4 years ago

I'm running pagure's testsuite on Debian, and I see the following failures regarding test_dev_data:

$ python3.8 -m nose -v tests.test_dev_data
test_dev_data_all (tests.test_dev_data.TestDevData): Check how dev-data --all performs ... /usr/bin/python3.8: can't open file 'dev-data.py': [Errno 2] No such file or directory
FAIL
test_dev_data_delete (tests.test_dev_data.TestDevData): Check how dev-data --init --delete performs ... /usr/bin/python3.8: can't open file 'dev-data.py': [Errno 2] No such file or directory
FAIL
test_dev_data_init (tests.test_dev_data.TestDevData): Check how dev-data --init performs ... /usr/bin/python3.8: can't open file 'dev-data.py': [Errno 2] No such file or directory
FAIL

======================================================================
FAIL: test_dev_data_all (tests.test_dev_data.TestDevData): Check how dev-data --all performs
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/sergio/projetos/pagure-debian/final-attempt/pagure/tests/test_dev_data.py", line 80, in test_dev_data_all
    self.assertEqual(len(stdout.split("\n")), 14)
AssertionError: 1 != 14
-------------------- >> begin captured logging << --------------------
tests: INFO: BUILD_ID: None
--------------------- >> end captured logging << ---------------------

======================================================================
FAIL: test_dev_data_delete (tests.test_dev_data.TestDevData): Check how dev-data --init --delete performs
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/sergio/projetos/pagure-debian/final-attempt/pagure/tests/test_dev_data.py", line 113, in test_dev_data_delete
    self.assertEqual(len(stdout.split("\n")), 4)
AssertionError: 1 != 4
-------------------- >> begin captured logging << --------------------
pagure.utils: INFO: logging already setup
--------------------- >> end captured logging << ---------------------

======================================================================
FAIL: test_dev_data_init (tests.test_dev_data.TestDevData): Check how dev-data --init performs
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/sergio/projetos/pagure-debian/final-attempt/pagure/tests/test_dev_data.py", line 140, in test_dev_data_init
    self.assertEqual(len(stdout.split("\n")), 2)
AssertionError: 1 != 2
-------------------- >> begin captured logging << --------------------
pagure.utils: INFO: logging already setup
--------------------- >> end captured logging << ---------------------

----------------------------------------------------------------------
Ran 3 tests in 10.308s

FAILED (failures=3)

These seem to happen because dev-data.py is present on master, but is not included in the release tarball.


Login to comment on this ticket.

Metadata