NASA-AMMOS / AIT-DSN

MIT License
19 stars 10 forks source link

Tests break on clean checkout of repo #20

Closed MJJoyce closed 6 years ago

MJJoyce commented 6 years ago

The majority of the tests fail on a clean checkout due to an assumed directory structure that isn't present.

======================================================================
ERROR: Write MD to file, then read back to header
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/mjjoyce/Coding/AIT/AIT-DSN/bliss/cfdp/test/pdu_test.py", line 131, in test_md_read_write
    write_outgoing_pdu(self.fixture, pdu_filename=test_file, output_directory=TEST_DIRECTORY)
  File "/Users/mjjoyce/Coding/AIT/AIT-DSN/bliss/cfdp/cfdp.py", line 316, in write_outgoing_pdu
    write_to_file(pdu_file_path, bytearray(pdu_bytes))
  File "/Users/mjjoyce/Coding/AIT/AIT-DSN/bliss/cfdp/util.py", line 66, in write_to_file
    with open(out_path, 'wb') as f:
IOError: [Errno 2] No such file or directory: '/Users/mjjoyce/Coding/AIT/ait-dsn/tmp/test/test_md.pdu'

----------------------------------------------------------------------
Ran 14 tests in 0.492s

FAILED (errors=11)

@lorsposto, could you update this so that it uses existing directories and/or makes and cleanups folders as necessary for testing?