Skip to content

Conversation

@onefloid
Copy link
Collaborator

@onefloid onefloid commented Dec 19, 2025

Tests Refactor & Utilities

Summary

Refactors test utilities and ApplicationService tests, and enables parallel test execution to improve reliability and maintainability.

Commits Included

  • d2fe12e: test — enable parallel test execution
  • 476ff43: test — refactor ApplicationService test
  • bf9c1c1: test — refactor extract method to module

Key Changes

  • Tests/Utils.py: Add generate_test_uuid() and reuse across tests.
  • Tests/ApplicationService_test.py:
    • Use UUIDs to ensure that tm1 objects are unique.
    • Consolidate duplicated app test flows into _run_application().
    • Data-driven tearDownClass cleanup with descriptive logging.
    • Use type-aware calls (app.application_type) for rename/existence checks.
  • Tests/AnnotationService_test.py and Tests/ElementService_test.py:
    • Switch to generate_test_uuid() for deterministic, unique names.

Impact

  • More DRY and readable tests.
  • Easier test isolation via consistent UUID generation.
  • Cleaner teardown with better failure visibility.
  • Preparatory changes for stable parallel test runs.

@onefloid onefloid force-pushed the test/improve-application-service-test branch from 3327855 to d2fe12e Compare December 19, 2025 20:05
@onefloid onefloid marked this pull request as ready for review December 19, 2025 20:14
@onefloid onefloid requested a review from MariusWirtz December 19, 2025 20:14
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