Skip to content

Commit

Permalink
test: class TestSubNode is renamed CheckSubNode to avoid warning …
Browse files Browse the repository at this point in the history
…during pytest classes collection
  • Loading branch information
laurent-laporte-pro authored and skamril committed May 14, 2024
1 parent 98fc18d commit aae515c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions tests/storage/repository/filesystem/test_folder_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from antarest.study.storage.rawstudy.model.filesystem.inode import INode
from antarest.study.storage.rawstudy.model.filesystem.raw_file_node import RawFileNode
from antarest.study.storage.rawstudy.model.filesystem.root.input.areas.list import InputAreasList
from tests.storage.repository.filesystem.utils import TestMiddleNode, TestSubNode
from tests.storage.repository.filesystem.utils import CheckSubNode, TestMiddleNode


def build_tree() -> INode[t.Any, t.Any, t.Any]:
Expand All @@ -24,8 +24,8 @@ def build_tree() -> INode[t.Any, t.Any, t.Any]:
context=Mock(),
config=config,
children={
"input": TestSubNode(value=100),
"output": TestSubNode(value=200),
"input": CheckSubNode(config, value=100),
"output": CheckSubNode(config, value=200),
},
)

Expand Down
5 changes: 3 additions & 2 deletions tests/storage/repository/filesystem/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from antarest.study.storage.rawstudy.model.filesystem.inode import TREE, INode


class TestSubNode(INode[int, int, int]):
class CheckSubNode(INode[int, int, int]):
def normalize(self) -> None:
pass

Expand All @@ -18,7 +18,8 @@ def denormalize(self) -> None:
def build(self, config: FileStudyTreeConfig) -> "TREE":
pass

def __init__(self, value: int):
def __init__(self, config: FileStudyTreeConfig, value: int):
super().__init__(config)
self.value = value

def get_node(
Expand Down

0 comments on commit aae515c

Please sign in to comment.