Skip to content

Made tests work with server running#189

Merged
rosesyrett merged 3 commits intoDiamondLightSource:mainfrom
rosesyrett:fix_tests
May 12, 2023
Merged

Made tests work with server running#189
rosesyrett merged 3 commits intoDiamondLightSource:mainfrom
rosesyrett:fix_tests

Conversation

@rosesyrett
Copy link
Copy Markdown
Contributor

This was a simple bug; one of the tests in test_cli.py assumed the server isn't running, which means if it is, it fails.

I've mocked out the api call this makes now. So now the tests work with the server running.

@rosesyrett rosesyrett requested a review from tpoliaw May 12, 2023 10:59
@codecov
Copy link
Copy Markdown

codecov Bot commented May 12, 2023

Codecov Report

Merging #189 (7cd3647) into main (5cfd0ff) will increase coverage by 0.09%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main     #189      +/-   ##
==========================================
+ Coverage   87.53%   87.62%   +0.09%     
==========================================
  Files          41       41              
  Lines        1091     1091              
==========================================
+ Hits          955      956       +1     
+ Misses        136      135       -1     

see 1 file with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Comment thread tests/test_cli.py Outdated
@rosesyrett rosesyrett self-assigned this May 12, 2023
@rosesyrett
Copy link
Copy Markdown
Contributor Author

solves #187

@rosesyrett rosesyrett merged commit a0e0ccc into DiamondLightSource:main May 12, 2023
@rosesyrett rosesyrett deleted the fix_tests branch May 12, 2023 11:23
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.

3 participants