Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

* reduce severity of mask mismatch #4360

Merged
merged 2 commits into from
Jun 18, 2019

Conversation

shadeofblue
Copy link
Contributor

  • refactor taskkeeper.check_support tests :p

closes: https://github.com/golemfactory/golem/issues/3438

* refactor `taskkeeper.check_support` tests :p
@shadeofblue shadeofblue force-pushed the 0.20-reduce-severity-of-mask-mismatch branch from f434572 to 7b6dec0 Compare June 18, 2019 14:32
environments_manager=EnvironmentsManager(),
node=dt_p2p_factory.Node(),
min_price=10.0)
self.assertIsInstance(tk, TaskHeaderKeeper)
Copy link
Contributor

Choose a reason for hiding this comment

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

8-|

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ugh ... that's not my code ;)

@codecov
Copy link

codecov bot commented Jun 18, 2019

Codecov Report

Merging #4360 into b0.20 will decrease coverage by 0.04%.
The diff coverage is 77.77%.

@@            Coverage Diff             @@
##            b0.20    #4360      +/-   ##
==========================================
- Coverage   88.73%   88.69%   -0.05%     
==========================================
  Files         223      223              
  Lines       19754    19762       +8     
==========================================
- Hits        17529    17528       -1     
- Misses       2225     2234       +9



class TestTaskHeaderKeeper(LogTestCase):
def test_init(self):
Copy link
Contributor

Choose a reason for hiding this comment

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

This test is redundant :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

repeat after me: it's not my code ...

@property
def err_reason(self):
try:
return list(self.desc.keys())[0]
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
return list(self.desc.keys())[0]
return next(iter(self.desc))

You'd need to catch a StopIteration exception though.

@shadeofblue shadeofblue merged commit ddf0b0d into b0.20 Jun 18, 2019
@shadeofblue shadeofblue deleted the 0.20-reduce-severity-of-mask-mismatch branch June 18, 2019 18:36
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants