Skip to content

Commit e108b5a

Browse files
committed
[LIB-837] Correct after tests;
1 parent c0f75cb commit e108b5a

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

syncano/models/incentives.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ class ScriptEndpoint(Model):
222222
"""
223223

224224
name = fields.SlugField(max_length=50, primary_key=True)
225-
script = fields.ModelField('Script', label='script id')
225+
script = fields.ModelField('Script', just_pk=True)
226226
public = fields.BooleanField(required=False, default=False)
227227
public_link = fields.ChoiceField(required=False, read_only=True)
228228
links = fields.LinksField()

tests/integration_test_custom_socket.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def test_custom_socket_update(self):
8080

8181
def assert_custom_socket(self, suffix, dependency_method):
8282
custom_socket = self._create_custom_socket(suffix, dependency_method=dependency_method)
83-
self.assertTrue(custom_socket.id)
83+
self.assertTrue(custom_socket.name)
8484

8585
@classmethod
8686
def _create_custom_socket(cls, suffix, dependency_method):
@@ -92,10 +92,6 @@ def _create_custom_socket(cls, suffix, dependency_method):
9292
custom_socket.publish()
9393
return custom_socket
9494

95-
@classmethod
96-
def _initialize_socket(cls, suffix):
97-
return CustomSocket(name='my_custom_socket_{}'.format(suffix))
98-
9995
@classmethod
10096
def _define_endpoints(cls, suffix, custom_socket):
10197
endpoint = Endpoint(name='my_endpoint_{}'.format(suffix))

0 commit comments

Comments
 (0)