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

Add environmental control over network-dependent tests #261

Merged
merged 5 commits into from
Sep 15, 2022

Conversation

CodyCBakerPhD
Copy link
Contributor

fix #260

@TheChymera, does this meet your request?

@CodyCBakerPhD CodyCBakerPhD added category: enhancement improvements of code or code behavior topic: testing issues related to testing labels Sep 6, 2022
@CodyCBakerPhD CodyCBakerPhD self-assigned this Sep 6, 2022
docs/developer_guide.rst Outdated Show resolved Hide resolved
tests/test_inspector.py Outdated Show resolved Hide resolved
tests/test_inspector.py Outdated Show resolved Hide resolved
Copy link
Contributor

@oruebel oruebel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@CodyCBakerPhD the approach in general looks fine. The comments I added are mainly to help clean the code up a bit (e.g, to avoid code duplication)

@codecov-commenter
Copy link

Codecov Report

Merging #261 (23760e6) into dev (c4af775) will decrease coverage by 3.84%.
The diff coverage is 81.25%.

Impacted file tree graph

@@            Coverage Diff             @@
##              dev     #261      +/-   ##
==========================================
- Coverage   94.45%   90.60%   -3.85%     
==========================================
  Files          19       20       +1     
  Lines         992     1022      +30     
==========================================
- Hits          937      926      -11     
- Misses         55       96      +41     
Flag Coverage Δ
unittests 90.60% <81.25%> (-3.85%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
nwbinspector/tools.py 49.05% <75.00%> (-48.57%) ⬇️
nwbinspector/testing.py 84.21% <84.21%> (ø)
nwbinspector/nwbinspector.py 87.38% <100.00%> (-5.61%) ⬇️

docs/developer_guide.rst Outdated Show resolved Hide resolved
docs/developer_guide.rst Outdated Show resolved Hide resolved
Copy link
Contributor

@oruebel oruebel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

@CodyCBakerPhD CodyCBakerPhD merged commit 13bf05e into dev Sep 15, 2022
@CodyCBakerPhD CodyCBakerPhD deleted the make_connectivity_tests_explicitly_skippable branch September 15, 2022 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: enhancement improvements of code or code behavior topic: testing issues related to testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature]: option to exclude tests which require network connectivity
3 participants