b17e18b4224450aeb24e61d5545016dfe3f1b81a,descarteslabs/workflows/models/tests/test_tile_url.py,,test_url_arguments,#Any#,73
Before Change
],
)
def test_url_arguments(args):
p1 = types.parameter("p1", types.Datetime)
p2 = types.parameter("p2", types.Float)
p3 = types.parameter("p3", types.Int)
base = "http://base.net"
url = functools.partial(tile_url.tile_url, base, (p1, p2, p3))
for bad_args in [{}, dict(args, blah="bad")]:
with pytest.raises(TypeError, match="Expected the required arguments"):
After Change
with pytest.raises(TypeError, match="missing a required argument"):
url()
with pytest.raises(TypeError, match="got an unexpected keyword argument "blah""):
url(**args, blah="bad")
with graft_client.consistent_guid():
got_base, params = url(**args).split("?")
assert got_base == base
In pattern: SUPERPATTERN
Frequency: 5
Non-data size: 5
Instances
Project Name: descarteslabs/descarteslabs-python
Commit Name: b17e18b4224450aeb24e61d5545016dfe3f1b81a
Time: 2021-01-05
Author: gabe@descarteslabs.com
File Name: descarteslabs/workflows/models/tests/test_tile_url.py
Class Name:
Method Name: test_url_arguments
Project Name: RasaHQ/rasa
Commit Name: 5d4e466ab9b197e360cea12125ed14c2150f0b35
Time: 2020-12-11
Author: joejuzl@gmail.com
File Name: tests/test_train.py
Class Name:
Method Name: test_model_finetuning_with_invalid_model
Project Name: DistrictDataLabs/yellowbrick
Commit Name: 0a2d2b4d81cc4e9209a92baba4406af60bbea24a
Time: 2018-04-23
Author: benjamin@bengfort.com
File Name: tests/test_classifier/test_rocauc.py
Class Name: ROCAUCTests
Method Name: test_rocauc_no_curves
Project Name: RasaHQ/rasa
Commit Name: 5d4e466ab9b197e360cea12125ed14c2150f0b35
Time: 2020-12-11
Author: joejuzl@gmail.com
File Name: tests/test_train.py
Class Name:
Method Name: test_model_finetuning_with_invalid_model_core
Project Name: RasaHQ/rasa
Commit Name: 5d4e466ab9b197e360cea12125ed14c2150f0b35
Time: 2020-12-11
Author: joejuzl@gmail.com
File Name: tests/test_train.py
Class Name:
Method Name: test_model_finetuning_with_invalid_model_nlu