Files
trailofbits-buttercup/orchestrator/test/test_bundle_api.py
Dan Guido 42691e50b4 style: apply ruff auto-fixes and formatting across entire codebase (#309)
* style: apply ruff auto-fixes and formatting across entire codebase

Applied safe auto-fixes from ruff v0.12.9 with --select ALL to improve code quality:
- Reorder imports (stdlib → third-party → local)
- Use modern type hints (collections.abc.Generator instead of typing.Generator)
- Add trailing commas for better diffs
- Format multi-line function parameters for readability
- Add strict=False to zip() calls for explicit behavior
- Simplify redundant elif to if after return statements
- Consistent code formatting with ruff format

These are all mechanical, non-controversial changes that improve code consistency
without altering functionality. Changes affect 180 files across all modules:
common, fuzzer, orchestrator, patcher, program-model, and seed-gen.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* re-applt ruff after merge

---------

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Michael D Brown <michael.brown@trailofbits.com>
2025-08-22 10:30:12 -04:00

52 lines
1.2 KiB
Python

"""Example Competition API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
The version of the OpenAPI document: 1.4.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""
import unittest
from buttercup.orchestrator.competition_api_client.api.bundle_api import BundleApi
class TestBundleApi(unittest.TestCase):
"""BundleApi unit test stubs"""
def setUp(self) -> None:
self.api = BundleApi()
def tearDown(self) -> None:
pass
def test_v1_task_task_id_bundle_bundle_id_delete(self) -> None:
"""Test case for v1_task_task_id_bundle_bundle_id_delete
Delete Bundle
"""
def test_v1_task_task_id_bundle_bundle_id_get(self) -> None:
"""Test case for v1_task_task_id_bundle_bundle_id_get
Get Bundle
"""
def test_v1_task_task_id_bundle_bundle_id_patch(self) -> None:
"""Test case for v1_task_task_id_bundle_bundle_id_patch
Update Bundle
"""
def test_v1_task_task_id_bundle_post(self) -> None:
"""Test case for v1_task_task_id_bundle_post
Submit Bundle
"""
if __name__ == "__main__":
unittest.main()