Skip to content

Commit cecf668

Browse files
fix thumbnail type
1 parent 598b9dd commit cecf668

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

packages/models-library/src/models_library/projects_nodes.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
BaseModel,
1010
ConfigDict,
1111
Field,
12-
HttpUrl,
1312
Json,
1413
StrictBool,
1514
StrictFloat,
@@ -18,7 +17,7 @@
1817
field_validator,
1918
)
2019

21-
from .basic_types import EnvVarKey, KeyIDStr
20+
from .basic_types import EnvVarKey, HttpUrl, KeyIDStr
2221
from .projects_access import AccessEnum
2322
from .projects_nodes_io import (
2423
DatCoreFileLink,

packages/models-library/tests/test_project_nodes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def test_create_minimal_node_with_new_data_type(
4848

4949
node = Node(**old_node_data)
5050
assert (
51-
str(node.thumbnail)
51+
node.thumbnail
5252
== "https://www.google.com/imgres?imgurl=https%3A%2F%2Fregtechassociation.org%2Fwp-content%2Fuploads%2F2018%2F10%2FStandards-stock-image-1400x650.jpg&imgrefurl=https%3A%2F%2Fregtechassociation.org%2Fnews%2Firta-launches-new-open-standard-principles-for-regtech-firms-in-support-of-key-initiatives-for-2018-19%2Fstandards-stock-image-1400x650%2F&tbnid=se_y-TktvwvEMM&vet=12ahUKEwjmsNDs66ruAhWEtqQKHSLRBT8QMygBegUIARCEAQ..i&docid=UiHvpBPeE3G8KM&w=1400&h=650&q=standard%20image&ved=2ahUKEwjmsNDs66ruAhWEtqQKHSLRBT8QMygBegUIARCEAQ"
5353
)
5454

0 commit comments

Comments
 (0)