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

Add system tests #611

Closed
wants to merge 44 commits into from
Closed

Add system tests #611

wants to merge 44 commits into from

Conversation

ZohebShaikh
Copy link
Collaborator

No description provided.

@ZohebShaikh ZohebShaikh linked an issue Sep 2, 2024 that may be closed by this pull request
Copy link

codecov bot commented Sep 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.52%. Comparing base (012238d) to head (de74170).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #611      +/-   ##
==========================================
- Coverage   92.52%   92.52%   -0.01%     
==========================================
  Files          35       35              
  Lines        1633     1632       -1     
==========================================
- Hits         1511     1510       -1     
  Misses        122      122              

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

@ZohebShaikh
Copy link
Collaborator Author

I have not move the current test to unit test will move after #589 is merge ...

@callumforrester callumforrester mentioned this pull request Sep 5, 2024
@ZohebShaikh ZohebShaikh closed this Sep 5, 2024
Copy link
Collaborator

@callumforrester callumforrester left a comment

Choose a reason for hiding this comment

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

Good start, @ZohebShaikh

tests/system_tests/test_api_endpoints.py Show resolved Hide resolved
tests/system_tests/test_api_endpoints.py Show resolved Hide resolved
tests/system_tests/test_api_endpoints.py Show resolved Hide resolved
tests/system_tests/test_api_endpoints.py Show resolved Hide resolved
tests/system_tests/test_api_endpoints.py Show resolved Hide resolved
created_task = rest.create_task(task)
created_tasks.append(created_task)

task_list = get_response(rest._url("/tasks"), TasksListResponse)
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm unsure why the client object doesn't provide what you want here

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I have added code for this here b5bb825

I think we should change

get_task(task_id)         to   get_task_by_id(task_id) -> assert task_id is not ""

and get_all_tasks()  

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It was added by this #508

tests/system_tests/test_api_endpoints.py Show resolved Hide resolved
src/blueapi/service/interface.py Show resolved Hide resolved
src/blueapi/service/interface.py Show resolved Hide resolved
tests/test_cli.py Show resolved Hide resolved
@DiamondJoseph
Copy link
Collaborator

Replaced by #618 for neatness

@callumforrester callumforrester mentioned this pull request Sep 5, 2024
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.

System Tests
3 participants