Lint test_dict
Browse files- tests/test_dict.py +8 -1
tests/test_dict.py
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
| 1 |
import unittest
|
| 2 |
|
| 3 |
import pytest
|
|
@@ -6,6 +9,10 @@ from axolotl.utils.dict import DictDefault
|
|
| 6 |
|
| 7 |
|
| 8 |
class DictDefaultTest(unittest.TestCase):
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
def test_dict_default(self):
|
| 10 |
cfg = DictDefault(
|
| 11 |
{
|
|
@@ -73,7 +80,7 @@ class DictDefaultTest(unittest.TestCase):
|
|
| 73 |
AttributeError,
|
| 74 |
match=r"'NoneType' object has no attribute 'another_random_key'",
|
| 75 |
):
|
| 76 |
-
cfg.random_key.another_random_key
|
| 77 |
|
| 78 |
def test_dict_shorthand_assignment(self):
|
| 79 |
"""
|
|
|
|
| 1 |
+
"""Module for testing DictDefault class"""
|
| 2 |
+
|
| 3 |
+
|
| 4 |
import unittest
|
| 5 |
|
| 6 |
import pytest
|
|
|
|
| 9 |
|
| 10 |
|
| 11 |
class DictDefaultTest(unittest.TestCase):
|
| 12 |
+
"""
|
| 13 |
+
Test DictDefault class
|
| 14 |
+
"""
|
| 15 |
+
|
| 16 |
def test_dict_default(self):
|
| 17 |
cfg = DictDefault(
|
| 18 |
{
|
|
|
|
| 80 |
AttributeError,
|
| 81 |
match=r"'NoneType' object has no attribute 'another_random_key'",
|
| 82 |
):
|
| 83 |
+
cfg.random_key.another_random_key = "value"
|
| 84 |
|
| 85 |
def test_dict_shorthand_assignment(self):
|
| 86 |
"""
|