Skip to content

Running test within the test directory will fail #3

Description

@tmetsch

Test should be update so the can be run in working directory. Currently when running 'python test_cdmi_object.py' the test will fail:

ERROR: test_create_object_cdmi_multipart (main.TestCDMIObject)

Traceback (most recent call last):
File "test_cdmi_object.py", line 172, in test_create_object_cdmi_multipart
fp = open(path + os.sep + 'desert.jpg', 'rb')
IOError: [Errno 2] No such file or directory: '/desert.jpg'

ERROR: test_create_object_non_cdmi_multipart (main.TestCDMIObject)

Traceback (most recent call last):
File "test_cdmi_object.py", line 216, in test_create_object_non_cdmi_multipart
fp = open(os.sep.join([path, 'desert.jpg']), 'rb')
IOError: [Errno 2] No such file or directory: '/desert.jpg'

Running test from 'python cdmi/test_cdmi_object.py' works.

Also tests should make use of os.sep instead of '/'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions