Skip to content

Commit

Permalink
fix: format
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladimir Mikhaylov committed Sep 15, 2020
1 parent 657efff commit bedf2f1
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion tests/data/bad_node.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from .base_cfg import cfg, BaseClass
from .base_cfg import cfg


class BadClass:
Expand Down
2 changes: 1 addition & 1 deletion tests/data/base_cfg.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from nt_config import CN, CL
from nt_config import CL, CN


class BaseClass:
Expand Down
2 changes: 1 addition & 1 deletion tests/data/node.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
from .base_cfg import cfg, BaseClass
from .base_cfg import BaseClass, cfg

cfg.CLASSES.ONE = BaseClass()
2 changes: 1 addition & 1 deletion tests/data/subclass.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from .good import cfg, BaseClass
from .good import BaseClass, cfg


class SubClass(BaseClass):
Expand Down
8 changes: 5 additions & 3 deletions tests/test_files.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
from tests.data.base_cfg import cfg, BaseClass
from tests.data.subclass import SubClass
from pathlib import Path

import pytest

from tests.data.base_cfg import BaseClass, cfg
from tests.data.subclass import SubClass

data_dir = Path(__file__).parent / "data"


Expand Down Expand Up @@ -42,7 +44,7 @@ def test_list():


def test_node():
node = cfg.load(data_dir / "node.py")
cfg.load(data_dir / "node.py")
assert len(cfg.CLASSES) == 1
assert isinstance(cfg.CLASSES.ONE, BaseClass)

Expand Down

0 comments on commit bedf2f1

Please sign in to comment.