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

Managed test case examples #158

Conversation

dmorton2297
Copy link
Contributor

@dmorton2297 dmorton2297 commented Apr 4, 2024

Added example for how to use managed test cases with the testing SDK

Copy link

vercel bot commented Apr 4, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
autoblocks-examples ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 4, 2024 6:47pm

@dmorton2297 dmorton2297 force-pushed the dan/epd-752-add-example-to-autoblocks-examples-for-managed-test-cases branch from 0b93492 to fb39197 Compare April 4, 2024 16:12
@dmorton2297 dmorton2297 force-pushed the dan/epd-752-add-example-to-autoblocks-examples-for-managed-test-cases branch from fb39197 to deb7172 Compare April 4, 2024 16:14
@dmorton2297 dmorton2297 force-pushed the dan/epd-752-add-example-to-autoblocks-examples-for-managed-test-cases branch from 2f5a8e6 to 12ff49f Compare April 4, 2024 17:51
@dmorton2297 dmorton2297 marked this pull request as ready for review April 4, 2024 17:52
TestCase(**test_case.body) for test_case in test_cases_response.test_cases
]"""

# Comment this line once you have created test cases for
Copy link
Contributor

Choose a reason for hiding this comment

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

i'd just make this a hybrid example, so add them together

def run():
# Uncomment following block to start using managed test cases
"""client = AutoblocksAPIClient()
test_cases_response = client.get_test_cases(test_suite_id="flashcard-generator-managed")
Copy link
Contributor

Choose a reason for hiding this comment

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

let's assign the test ID to a variable and use it here to make the relationship clear

@dmorton2297 dmorton2297 changed the title Javascript managed test cases example Managed test case examples Apr 4, 2024
@dmorton2297 dmorton2297 merged commit c7c0581 into main Apr 4, 2024
15 checks passed
@dmorton2297 dmorton2297 deleted the dan/epd-752-add-example-to-autoblocks-examples-for-managed-test-cases branch April 4, 2024 19:09
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