Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#845)
Browse files Browse the repository at this point in the history
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] authored Aug 22, 2023
1 parent c73314c commit 7376843
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ repos:
args: ["--py38-plus"]

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 'v0.0.284'
rev: 'v0.0.285'
hooks:
- id: ruff
args: ["--fix"]
Expand Down
14 changes: 7 additions & 7 deletions romancal/datamodels/tests/test_datamodels.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,17 +169,17 @@ def test_imagemodel_slice_n_dice(n, obj_type, tmp_path, request):
x4 = mc[-2]
x5 = mc[-2:]

assert type(x1) == list
assert isinstance(x1, list)
assert len(x1) == len(filepath_list)

assert type(x2) == rdm.ImageModel
assert isinstance(x2, rdm.ImageModel)

assert type(x3) == list
assert isinstance(x3, list)
assert len(x3) == n - 2

assert type(x4) == rdm.ImageModel
assert isinstance(x4, rdm.ImageModel)

assert type(x5) == list
assert isinstance(x5, list)
assert len(x5) == 2


Expand Down Expand Up @@ -363,15 +363,15 @@ def test_get_crds_parameters(n, obj_type, tmp_path, request):

res = mc.get_crds_parameters

assert type(res) == dict
assert isinstance(res, dict)


def test_get_crds_parameters_empty():
mc = ModelContainer()

crds_param = mc.get_crds_parameters

assert type(crds_param) == dict
assert isinstance(crds_param, dict)
assert len(crds_param) == 0


Expand Down

0 comments on commit 7376843

Please sign in to comment.