code stringlengths 3 6.57k |
|---|
logger.info('md5: %s, sha1: %s' % (self.md5.hexdigest() |
self.sha1.hexdigest() |
self.updatehashdb() |
self.file.close() |
updatehashdb(self) |
sqlite3.connect(self.hashdb) |
conn.cursor() |
c.execute("INSERT INTO hashes VALUES (?,?,?,?) |
self.md5.hexdigest() |
self.sha1.hexdigest() |
time.time() |
conn.commit() |
conn.close() |
__getattr__(self, attr) |
getattr(self.file, attr) |
__iter__(self) |
iter(self.file) |
GenericType (ActivityType, WorkflowType) |
FooType(GenericType) |
kind(self) |
_configuration_keys(self) |
test_type_short_dict_representation() |
FooType("test-foo", "v1.0") |
_type.to_short_dict() |
should.equal({"name": "test-foo", "version": "v1.0"}) |
test_type_medium_dict_representation() |
FooType("test-foo", "v1.0") |
_type.to_medium_dict() |
should.equal(_type.to_short_dict() |
_type.to_medium_dict() |
should.equal("REGISTERED") |
_type.to_medium_dict() |
should.contain("creationDate") |
_type.to_medium_dict() |
should_not.contain("deprecationDate") |
_type.to_medium_dict() |
should_not.contain("description") |
_type.to_medium_dict() |
should.equal("foo bar") |
_type.to_medium_dict() |
should.contain("deprecationDate") |
test_type_full_dict_representation() |
FooType("test-foo", "v1.0") |
_type.to_full_dict() |
should.equal(_type.to_medium_dict() |
_type.to_full_dict() |
should.equal({}) |
_type.to_full_dict() |
_type.to_full_dict() |
should.equal("60") |
_type.to_full_dict() |
keys() |
sorted(keys) |
should.equal(["defaultTaskList", "justAnExampleTimeout"]) |
test_type_string_representation() |
FooType("test-foo", "v1.0") |
str(_type) |
FooType(name: test-foo, version: v1.0, status: REGISTERED) |
create(kernel) |
Creature() |
result.stfName("droid_name","r2_base") |
os.chdir(Path(__file__) |
resolve() |
RoutesTests(unittest.TestCase) |
test_root(self) |
TestClient(app) |
client.get("/") |
self.assertTrue(response.status_code == 200) |
ModelManager() |
model_manager.clear_instance() |
test_get_models(self) |
TestClient(app) |
client.get("/api/models") |
self.assertTrue(response.status_code == 200) |
self.assertTrue(response.json() |
ModelManager() |
model_manager.clear_instance() |
test_prediction(self) |
TestClient(app) |
self.assertTrue(response.status_code == 200) |
self.assertTrue(response.json() |
ModelManager() |
model_manager.clear_instance() |
test_prediction_with_bad_data(self) |
TestClient(app) |
self.assertTrue(response.status_code == 422) |
ModelManager() |
model_manager.clear_instance() |
test_prediction_with_bad_configuration(self) |
self.assertRaises(ValueError) |
ModelManager() |
model_manager.clear_instance() |
test_prediction_with_no_endpoint(self) |
TestClient(app) |
self.assertTrue(response.status_code == 404) |
ModelManager() |
model_manager.clear_instance() |
unittest.main() |
test_can_load_documents_v1() |
load_documents(DATASET_TINY_FPATH) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.