-
Notifications
You must be signed in to change notification settings - Fork 3
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
Make backend and conftest into links in dev docs #149
Conversation
docs/developer/testing.rst
Outdated
@@ -21,12 +21,18 @@ In addition, the fakes are relatively complex and may diverge from the real impl | |||
|
|||
To mitigate these problems, the fake client is tested alongside a real client. | |||
But to (mostly) avoid the downsides stated in the beginning, the real client is connected to a local SciCat server. | |||
See ``src/testing/backend.py`` and ``tests/conftest.py`` for the concrete setup. | |||
See the |backend folder|_ folder and |conftest file|_ for the concrete setup. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this needed? Can't you use
`src/scitacean/backend <https://github.com/SciCatProject/scitacean/tree/main/src/scitacean/testing/backend>`_
?
The backend is launched in a docker container with the image of the latest release of the SciCat backend. | ||
Tests in ``tests/client`` are then run with both the fake and the real client to ensure that both produce the same results. | ||
Tests in `tests/client <https://github.com/SciCatProject/scitacean/tree/main/tests/client>`_ are then run with both the fake and the real client to ensure that both produce the same results. | ||
|
||
Use ``--backend-tests`` with ``pytest`` to run these tests. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems the paths to the files below are out of date. There is no tests/common/sftp_server.py
in the repo I think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
True. Those files are now packaged with Scitacean and are now in
:mod:`scitacean.testing.sftp`
Can you update the paths to this? I don't think we need to refer to any concrete files in this case but to the user guide in https://scicatproject.github.io/scitacean/user-guide/testing.html#Local-SFTP-fileserver
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this statement still true?
Tests can use it by depending on the
sftp_fileserver
fixture.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
1ede3c8
to
768ad38
Compare
No description provided.