Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update tests #17

Open
wants to merge 45 commits into
base: master
Choose a base branch
from
Open

Update tests #17

wants to merge 45 commits into from

Conversation

apdavison
Copy link
Member

@apdavison apdavison commented Jan 4, 2023

The current test suite:

  • doesn't run unless you're running a local instance of the Seafile server
  • contain test data with unknown contents

This PR:

  • adapts the tests to run against drive-int.ebrains.eu
  • uses plain text test data

Note that you need to set your EBRAINS username and a valid bearer token as environment variables to run the tests.

On my machine, one test fails, the other 27 pass. The error is:

FAILED tests/test_files.py::test_upload_file[/\u6d4b\u8bd5\u76ee\u5f55\u4e00-dzppmrwvwoso] - ebrains_drive.exceptions.ClientHttpError: ClientHttpError[403: Expected 200, but get 403]

Help debugging this is welcome.

I'd like to run these tests automatically with Gitlab CI, the problem is getting the bearer token - if someone knows how to do this, please let me know!

(We also need tests for the Bucket client).

freeplant and others added 30 commits December 26, 2017 16:31
implement methods in the class _SeafDirentBase:
rename(), moveTo(), and copyTo().
self.path should be also updated after renaming/moving a file.
@Cracky5457
Copy link
Collaborator

Cracky5457 commented Feb 22, 2023

Hello andrew, I can't merge that there is conflict. Sorry for the late answer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants