Skip to content

Commit 2eb0372

Browse files
committed
Fix tests
1 parent d65cb78 commit 2eb0372

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/test_doc_writer.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import unittest
2-
from hydrus.hydraspec import doc_writer
2+
from hydra_python_core import doc_writer
33
from unittest.mock import MagicMock, patch
44

55

@@ -59,7 +59,7 @@ def test_context_with_nothing(self):
5959
}
6060
self.assertEqual(expected_context, context.generate())
6161

62-
@patch('hydrus.hydraspec.doc_writer.HydraEntryPoint',
62+
@patch('hydra_python_core.doc_writer.HydraEntryPoint',
6363
spec=doc_writer.HydraEntryPoint)
6464
def test_context_with_entrypoint(self, mock_entry):
6565
"""
@@ -88,13 +88,13 @@ def test_context_with_class(self):
8888

8989
mocked_hydra_class = MagicMock()
9090
with patch(
91-
'hydrus.hydraspec.doc_writer.HydraClass',
91+
'hydra_python_core.doc_writer.HydraClass',
9292
mocked_hydra_class, spec_set=doc_writer.HydraClass):
9393
mocked_hydra_property = MagicMock()
9494
mocked_hydra_class.id_ = "vocab:Pet"
9595
mocked_hydra_class.title = "Pet"
9696
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,
9898
spec_set=doc_writer.HydraClassProp):
9999
mocked_hydra_property.prop = ""
100100
mocked_hydra_property.readonly = "true"
@@ -119,8 +119,8 @@ def test_context_with_class(self):
119119

120120
self.assertEqual(expected_context, context.generate())
121121

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',
124124
spec=doc_writer.HydraCollection)
125125
def test_context_with_collection(self, hydra_class, hydra_collection):
126126
"""

0 commit comments

Comments
 (0)