MCPcopy Create free account
hub / github.com/algorithmiaio/algorithmia-python / test_update_algo

Method test_update_algo

Test/regular/algo_test.py:81–98  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

79 self.assertTrue(result['results'][0]['resource_type'] == "algorithm")
80
81 def test_update_algo(self):
82 details = {
83 "summary": "Example Summary",
84 "label": "QA",
85 "tagline": "Example Tagline"
86 }
87 settings = {
88 "source_visibility": "open",
89 "algorithm_environment": self.environment_id,
90 "license": "apl",
91 "network_access": "isolated",
92 "pipeline_enabled": False
93 }
94 version_info = {
95 "sample_input": "hello"
96 }
97 result = self.client.algo('quality/echo').update(details=details, settings=settings, version_info=version_info)
98 self.assertTrue('id' in result)
99
100
101 def test_get_build_by_id(self):

Callers

nothing calls this directly

Calls 2

updateMethod · 0.80
algoMethod · 0.80

Tested by

no test coverage detected