1
1
import unittest
2
- from hydrus . hydraspec import doc_writer
2
+ from hydra_python_core import doc_writer
3
3
from unittest .mock import MagicMock , patch
4
4
5
5
@@ -59,7 +59,7 @@ def test_context_with_nothing(self):
59
59
}
60
60
self .assertEqual (expected_context , context .generate ())
61
61
62
- @patch ('hydrus.hydraspec .doc_writer.HydraEntryPoint' ,
62
+ @patch ('hydra_python_core .doc_writer.HydraEntryPoint' ,
63
63
spec = doc_writer .HydraEntryPoint )
64
64
def test_context_with_entrypoint (self , mock_entry ):
65
65
"""
@@ -88,13 +88,13 @@ def test_context_with_class(self):
88
88
89
89
mocked_hydra_class = MagicMock ()
90
90
with patch (
91
- 'hydrus.hydraspec .doc_writer.HydraClass' ,
91
+ 'hydra_python_core .doc_writer.HydraClass' ,
92
92
mocked_hydra_class , spec_set = doc_writer .HydraClass ):
93
93
mocked_hydra_property = MagicMock ()
94
94
mocked_hydra_class .id_ = "vocab:Pet"
95
95
mocked_hydra_class .title = "Pet"
96
96
mocked_hydra_class .desc = "Pet"
97
- with patch ('hydrus.hydraspec .doc_writer.HydraClassProp' , mocked_hydra_property ,
97
+ with patch ('hydra_python_core .doc_writer.HydraClassProp' , mocked_hydra_property ,
98
98
spec_set = doc_writer .HydraClassProp ):
99
99
mocked_hydra_property .prop = ""
100
100
mocked_hydra_property .readonly = "true"
@@ -119,8 +119,8 @@ def test_context_with_class(self):
119
119
120
120
self .assertEqual (expected_context , context .generate ())
121
121
122
- @patch ('hydrus.hydraspec .doc_writer.HydraClass' , spec = doc_writer .HydraClass )
123
- @patch ('hydrus.hydraspec .doc_writer.HydraCollection' ,
122
+ @patch ('hydra_python_core .doc_writer.HydraClass' , spec = doc_writer .HydraClass )
123
+ @patch ('hydra_python_core .doc_writer.HydraCollection' ,
124
124
spec = doc_writer .HydraCollection )
125
125
def test_context_with_collection (self , hydra_class , hydra_collection ):
126
126
"""
0 commit comments