Skip to content

Commit

Permalink
Refactor get latest analysis (#264)
Browse files Browse the repository at this point in the history
### Added

- Tests

### Changed

- Refactor `get_latest_analysis` and migrate to CRUD.
- Refactor tests
- Rename case_id fixtures to case_name
  • Loading branch information
henrikstranneheim committed Aug 29, 2023
1 parent b00f857 commit 506e0d4
Show file tree
Hide file tree
Showing 11 changed files with 398 additions and 226 deletions.
7 changes: 5 additions & 2 deletions tests/apps/tower/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@

import pytest

from trailblazer.constants import TOWER_TIMESTAMP_FORMAT, TOWER_TIMESTAMP_FORMAT_EXTENDED
from trailblazer.constants import (
TOWER_TIMESTAMP_FORMAT,
TOWER_TIMESTAMP_FORMAT_EXTENDED,
)

TOWER_RESPONSE_DIR: Path = Path("tests", "fixtures", "tower")
TOWER_ID: str = "1m759EPcbjuK7n"
Expand All @@ -23,7 +26,7 @@ class TowerTaskResponseFile:
EMPTY: Path = Path(TOWER_RESPONSE_DIR, "tower_tasks_empty.json")


class CaseIDs:
class CaseName:
PENDING: str = "cuddlyhen_pending"
RUNNING: str = "cuddlyhen"
COMPLETED: str = "cuddlyhen_completed"
Expand Down
Loading

0 comments on commit 506e0d4

Please sign in to comment.