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

additional-tests-for-adapter #1904

Merged
merged 4 commits into from
Jan 17, 2024
Merged

Conversation

michmuel
Copy link
Collaborator

@michmuel michmuel commented Dec 1, 2023

Closes #1880

@michmuel michmuel self-assigned this Dec 1, 2023
@michmuel michmuel marked this pull request as draft December 1, 2023 10:41
@michmuel
Copy link
Collaborator Author

michmuel commented Dec 4, 2023

@svamaa, @voisardf, @vvmruder

The test test_get_session_that_does_not_exists fails due to

@pytest.fixture(scope='session')
.

Options:

  • change the scope of the fixture, and explicitly include the function in 20-30 tests that require this patch
  • move the adapter tests in a folder on a higher directory level. Structure of code and tests would differ in this case.

What shall we do?

@svamaa
Copy link
Collaborator

svamaa commented Dec 14, 2023

Options:

  • change the scope of the fixture, and explicitly include the function in 20-30 tests that require this patch
  • move the adapter tests in a folder on a higher directory level. Structure of code and tests would differ in this case.

What shall we do?

How would you estimate the payload for the first option? It seems to me to be the cleaner option but I'm not sure if it exceeds the goal of this ticket?

@michmuel
Copy link
Collaborator Author

I guess the first option is doable. Seems to be almost only copy and paste.

Copy link

codecov bot commented Jan 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (c139975) 80.59% compared to head (e050c84) 80.59%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1904   +/-   ##
=======================================
  Coverage   80.59%   80.59%           
=======================================
  Files         125      125           
  Lines        5266     5266           
=======================================
  Hits         4244     4244           
  Misses       1022     1022           
Flag Coverage Δ
unittests 80.59% <ø> (ø)

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

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

@michmuel
Copy link
Collaborator Author

michmuel commented Jan 5, 2024

I had again a look at

def dbsession(test_db_engine):

Balancing effort and yield I moved the adapter tests into a separate directory.

@michmuel michmuel marked this pull request as ready for review January 5, 2024 11:17
Copy link
Collaborator

@voisardf voisardf 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 and reorganised tests pass in my local instance

@michmuel michmuel requested a review from voisardf January 10, 2024 15:45
Copy link
Collaborator

@svamaa svamaa 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!
Thanks for the work!

Copy link
Collaborator

@voisardf voisardf left a comment

Choose a reason for hiding this comment

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

sorry I didn't answer earlier. Still ok for me, thanks 👍

@michmuel michmuel merged commit 11df20d into master Jan 17, 2024
11 checks passed
@michmuel michmuel deleted the additional-tests-for-adapter-py branch January 17, 2024 09:59
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.

Improve test coverage - adapter.py
3 participants