Skip to content

Add smoke tests of some models and views#242

Merged
medihack merged 12 commits intomainfrom
smoke-tests
Oct 9, 2025
Merged

Add smoke tests of some models and views#242
medihack merged 12 commits intomainfrom
smoke-tests

Conversation

@medihack
Copy link
Member

@medihack medihack commented Oct 9, 2025

No description provided.

Copilot AI review requested due to automatic review settings October 9, 2025 21:39
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds comprehensive smoke tests for views across multiple Django applications to ensure basic functionality of HTTP endpoints.

  • Adds smoke tests for selective transfer, batch transfer, batch query, and dicom explorer views
  • Implements ordering of job query results by creation date in descending order
  • Adds handling for jobs with no tasks in the post-processing logic

Reviewed Changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
adit/selective_transfer/tests/test_selective_transfer.py Adds smoke tests for all selective transfer views including job and task CRUD operations
adit/batch_transfer/tests/test_batch_transfer.py Adds smoke tests for batch transfer job and task views with proper permissions
adit/batch_query/tests/test_batch_query.py Adds smoke tests for batch query views including results and download functionality
adit/dicom_explorer/tests/test_dicom_explorer.py Adds smoke tests for dicom explorer form view with and without server redirect
adit/core/tests/test_dicom_nodes.py Comprehensive unit tests for DicomNode models and related functionality
adit/core/tests/test_dicom_job_task.py Unit tests for DicomJob and DicomTask model behavior and properties
adit/core/views.py Adds ordering by creation date to job list view queries
adit/core/models.py Adds handling for jobs with no tasks in post_process method

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings October 9, 2025 21:40
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@medihack medihack changed the title Add smoke tests of views Add smoke tests of some models and views Oct 9, 2025
@medihack
Copy link
Member Author

medihack commented Oct 9, 2025

@codex review

@chatgpt-codex-connector
Copy link

Codex Review: Didn't find any major issues. Swish!

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting

@medihack medihack merged commit 053a1c2 into main Oct 9, 2025
1 check passed
@medihack medihack deleted the smoke-tests branch October 9, 2025 22:13
samuelvkwong pushed a commit that referenced this pull request Oct 15, 2025
* Add comprehensive test cases for batch query, batch transfer, DICOM explorer, and selective transfer functionalities

* Remove unused task creation in batch query and selective transfer tests

* Refactor test cases in batch query, batch transfer, DICOM explorer, and selective transfer to remove redundant docstrings for improved readability

* Add unit tests for DICOM job and node functionalities (#237)

Co-authored-by: Kai Schlamp <kai.schlamp@gmail.com>

* Correct expected HTTP status in test_batch_query_job_delete_view

* Fix some tests

* Remove some flaky dicom explorer tests

* Update adit/batch_query/tests/test_batch_query.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Rename some tests and fix small issues

---------

Co-authored-by: mhumzaarain <smarai@uni-bonn.de>
Co-authored-by: Muhammad Humza Arain <muhammadhumza1000@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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.

3 participants