5b5fb4c657f0cdf4fe404aa9daaf99aca83d01cf,mltsp/tests/test_flask_app.py,FlaskAppTestCase,test_upload_features_form,#FlaskAppTestCase#,2012

Before Change


            res_dict = json.loads(rv.data.decode())
            assert "PID" in res_dict
            while "currently running" in fa.check_job_status(res_dict["PID"]):
                time.sleep(1)
            new_key = res_dict["featureset_key"]
            npt.assert_equal(res_dict["featureset_name"], "abc123")
            npt.assert_equal(res_dict["zipfile_name"], "None")
            featureset = xr.open_dataset(pjoin(config["paths"]["features_folder"],

After Change


                                      "test_features_with_targets.csv"),
                                     "featuresetname": "abc123",
                                     "featureset_projname_select": "abc123"})
            new_key = list(rdb.table("features").filter({"name":
                          "abc123"}).pluck("id").run(conn))[0]["id"]
            featureset = xr.open_dataset(pjoin(config["paths"]["features_folder"],
                                                 "%s_featureset.nc" % new_key))
            assert(all(c in ["class1", "class2", "class3"] for
                       c in featureset.target.values.astype("U")))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: cesium-ml/cesium
Commit Name: 5b5fb4c657f0cdf4fe404aa9daaf99aca83d01cf
Time: 2016-02-24
Author: brettnaul@gmail.com
File Name: mltsp/tests/test_flask_app.py
Class Name: FlaskAppTestCase
Method Name: test_upload_features_form


Project Name: ray-project/ray
Commit Name: 2e4e285ef079a07fa4f54269751040f5a176785a
Time: 2020-11-25
Author: rkooo567@gmail.com
File Name: python/ray/tests/test_object_spilling.py
Class Name:
Method Name: test_spill_objects_automatically


Project Name: comic/grand-challenge.org
Commit Name: e13d964b393f06324ccad2648076431e29da0620
Time: 2019-04-02
Author: code@jmsmkn.com
File Name: app/tests/container_exec_tests/test_services.py
Class Name:
Method Name: test_service_start_cleanup