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

Feature/ted 39 #12

Merged
merged 5 commits into from
Feb 17, 2022
Merged

Feature/ted 39 #12

merged 5 commits into from
Feb 17, 2022

Conversation

CaptainOfHacks
Copy link
Collaborator

No description provided.

@codecov
Copy link

codecov bot commented Feb 17, 2022

Codecov Report

Merging #12 (6232576) into main (e94717c) will increase coverage by 0.07%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #12      +/-   ##
==========================================
+ Coverage   94.94%   95.01%   +0.07%     
==========================================
  Files          19       19              
  Lines         336      341       +5     
==========================================
+ Hits          319      324       +5     
  Misses         17       17              
Impacted Files Coverage Δ
ted_sws/notice_fetcher/services/notice_fetcher.py 100.00% <100.00%> (ø)

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 e94717c...6232576. Read the comment docs.

Copy link
Collaborator

@costezki costezki left a comment

Choose a reason for hiding this comment

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

Well Done!



@pytest.fixture
def notice_repository():
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do not duplicate fixtures.
The fixture resolution is hierarchical. So remove this one because it is defined in the parent package conftest.py

def notice_repository():
return FakeNoticeRepository()

@pytest.fixture
Copy link
Collaborator

Choose a reason for hiding this comment

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

idem here

from ted_sws.notice_fetcher.services.notice_fetcher import NoticeFetcher


def test_notice_fetcher_by_identifier():
def test_notice_fetcher_by_identifier(notice_repository, ted_document_search):
Copy link
Collaborator

Choose a reason for hiding this comment

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

elegant

@CaptainOfHacks CaptainOfHacks merged commit 8923b03 into main Feb 17, 2022
@CaptainOfHacks CaptainOfHacks deleted the feature/TED-39 branch February 17, 2022 12:57
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.

2 participants