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

Refactor engine client test_create_job test names for better clarity and consistency #6885

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ayshiff
Copy link

@ayshiff ayshiff commented Dec 27, 2024

Split initial test_create_job test into:

  • Four successful tests:
    • test_create_job_with_all_parameters
    • test_create_job_without_labels
    • test_create_job_without_description
    • test_create_job_without_specified_job_id
  • One failure test:
    • test_create_job_with_invalid_priority

Note: Splitting successful tests to stay consistent with existing tests:

  • test_create_job_with_invalid_processor_and_device_config_arguments_throws
  • test_create_job_with_run_name_and_device_config_name_succeeds

Fixes #6761

@ayshiff ayshiff requested review from wcourtney, vtomole, verult and a team as code owners December 27, 2024 14:54
@CirqBot CirqBot added the size: M 50< lines changed <250 label Dec 27, 2024
Copy link

codecov bot commented Jan 2, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.86%. Comparing base (06f12b9) to head (35d0cf5).
Report is 5 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6885   +/-   ##
=======================================
  Coverage   97.86%   97.86%           
=======================================
  Files        1084     1084           
  Lines       94225    94321   +96     
=======================================
+ Hits        92215    92311   +96     
  Misses       2010     2010           

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

Split initial test_create_job into:
- Four successful tests:
  - test_create_job_with_all_parameters
  - test_create_job_without_labels
  - test_create_job_without_description
  - test_create_job_without_specified_job_id
- One failure test:
  - test_create_job_with_invalid_priority

Note: Splitting successful tests to stay consistent with existing tests:
  - test_create_job_with_invalid_processor_and_device_config_arguments_throws
  - test_create_job_with_run_name_and_device_config_name_succeeds
@ayshiff ayshiff force-pushed the improve-test-create-job-names branch from 34fbebd to eddb152 Compare January 2, 2025 05:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size: M 50< lines changed <250
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Clean up test_create_job in cirq-google/cirq_google/engine/engine_client_test.py
2 participants