Skip to content

Fix py.test warnings#1106

Merged
cygnusv merged 5 commits intonucypher:masterfrom
fjarri:fix-pytest-warnings
Jun 28, 2019
Merged

Fix py.test warnings#1106
cygnusv merged 5 commits intonucypher:masterfrom
fjarri:fix-pytest-warnings

Conversation

@fjarri
Copy link
Contributor

@fjarri fjarri commented Jun 27, 2019

Fix several py.test warnings that can obscure real ones from tests.

  • Declare slow mark explicitly in pytest.ini
  • Fix a typo: pytest.mark.usesfixtures -> pytest.mark.usefixtures (this actually makes these tests pass)
  • Rename TesterBlockchain on import in tests to prevent py.test from trying to pick it up

@fjarri fjarri requested a review from KPrasch June 27, 2019 06:31
from nucypher.blockchain.eth.registry import InMemoryEthereumContractRegistry, InMemoryAllocationRegistry
from nucypher.blockchain.eth.sol.compile import SolidityCompiler
from nucypher.utilities.sandbox.blockchain import TesterBlockchain
# Prevents TesterBlockchain to be picked up by py.test as a test class
Copy link
Member

Choose a reason for hiding this comment

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

Haha, oh pytest, so nosy.

fjarri and others added 2 commits June 27, 2019 14:45
Fixing `usefixtures` mark makes it fail due to issue nucypher#1102
* Avoids that unregistered marks just make the test to pass trivially (see https://docs.pytest.org/en/latest/mark.html#raising-errors-on-unknown-marks)
* Adds codecov arguments to improve readability of circleci/config.yml
@codecov
Copy link

codecov bot commented Jun 27, 2019

Codecov Report

Merging #1106 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1106   +/-   ##
=======================================
  Coverage   83.26%   83.26%           
=======================================
  Files          68       68           
  Lines        9081     9081           
=======================================
  Hits         7561     7561           
  Misses       1520     1520

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 740ed79...82b80e7. Read the comment docs.

@fjarri fjarri added the Test 🔍 Tests only label Jun 27, 2019
@fjarri fjarri marked this pull request as ready for review June 27, 2019 22:03
Copy link
Member

@KPrasch KPrasch left a comment

Choose a reason for hiding this comment

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

🤠

@cygnusv cygnusv merged commit 18daf4a into nucypher:master Jun 28, 2019
cygnusv added a commit to cygnusv/nucypher that referenced this pull request Jul 1, 2019
cygnusv added a commit to cygnusv/nucypher that referenced this pull request Jul 1, 2019
cygnusv added a commit to cygnusv/nucypher that referenced this pull request Jul 5, 2019
cygnusv added a commit to cygnusv/nucypher that referenced this pull request Jul 9, 2019
cygnusv added a commit to cygnusv/nucypher that referenced this pull request Jul 11, 2019
cygnusv added a commit to cygnusv/nucypher that referenced this pull request Jul 16, 2019
cygnusv added a commit to cygnusv/nucypher that referenced this pull request Jul 17, 2019
KPrasch pushed a commit to KPrasch/nucypher that referenced this pull request Jul 18, 2019
KPrasch pushed a commit to KPrasch/nucypher that referenced this pull request Jul 18, 2019
KPrasch pushed a commit to KPrasch/nucypher that referenced this pull request Jul 25, 2019
@fjarri fjarri deleted the fix-pytest-warnings branch August 1, 2019 00:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Test 🔍 Tests only

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants