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

test_doc_examples.py: initialize examples_path. #538

Merged
merged 2 commits into from
Feb 18, 2024

Conversation

emollier
Copy link
Contributor

While trying to package the Python nixio module in Debian, most tests from test_doc_examples.py are failing with the following error:

    def handle_lif(self):
>       lif_path = Path.joinpath(self.examples_path, "lif.py")
E       AttributeError: 'TestDocumentationExamples' object has no attribute 'examples_path'

This looks to be caused by missing initialisation of the examples_path attribute of the TestDocumentationExamples class. Initialising the attribute with the path to the documentation from the root of the sources corrects the issue.

emollier and others added 2 commits February 17, 2024 19:10
While trying to package the Python nixio module in Debian, most tests
from test_doc_examples.py are failing with the following error:

	    def handle_lif(self):
	>       lif_path = Path.joinpath(self.examples_path, "lif.py")
	E       AttributeError: 'TestDocumentationExamples' object has no attribute 'examples_path'

This looks to be caused by missing initialisation of the examples_path
attribute of the TestDocumentationExamples class.  Initialising the
attribute with the path to the documentation from the root of the
sources corrects the issue.

Signed-off-by: Étienne Mollier <emollier@debian.org>
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (616bce4) 81.36% compared to head (f77ad4f) 81.38%.
Report is 8 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #538      +/-   ##
==========================================
+ Coverage   81.36%   81.38%   +0.01%     
==========================================
  Files          81       81              
  Lines       10825    10828       +3     
==========================================
+ Hits         8808     8812       +4     
+ Misses       2017     2016       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jgrewe
Copy link
Member

jgrewe commented Feb 18, 2024

Thank you @emollier for packaging and fixing!

@jgrewe jgrewe merged commit 4cbd9ff into G-Node:master Feb 18, 2024
21 checks passed
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.

3 participants