8a34b72572353e7e4ce18401cdfb8d5cfa6246eb,unittests/test_fields.py,,test_timer_field,#,91

Before Change


    assert isinstance(FieldTester.field, fields.TimerField)
    assert (datetime.timedelta(days=1, hours=65,
                               minutes=22, seconds=87) == tester.field)
    tester.field = datetime.timedelta(days=1, hours=65,
                                      minutes=22, seconds=87)
    assert (datetime.timedelta(days=1, hours=65,
                               minutes=22, seconds=87) == tester.field)
    tester.field = ""
    assert (datetime.timedelta(days=0, hours=0,

After Change


    with pytest.raises(ValueError):
        tester.field = "10"

    with pytest.raises(ValueError):
        tester.field = -10


def test_proxy_field():
    class Target:
        def __init__(self):
            self.a = 1
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 2

Instances


Project Name: eth-cscs/reframe
Commit Name: 8a34b72572353e7e4ce18401cdfb8d5cfa6246eb
Time: 2020-09-16
Author: karakasis@cscs.ch
File Name: unittests/test_fields.py
Class Name:
Method Name: test_timer_field


Project Name: dask/distributed
Commit Name: f16ee17bc9481f2d9e19479f390d4248fc7c83a3
Time: 2019-07-24
Author: mrocklin@gmail.com
File Name: distributed/tests/test_stress.py
Class Name:
Method Name: test_stress_scatter_death


Project Name: MTG/freesound
Commit Name: 6491077d6a381cdb28a6fe52299c6af19588111e
Time: 2017-12-19
Author: andres.ferraro@upf.edu
File Name: accounts/management/commands/fill_downloads.py
Class Name: Command
Method Name: handle


Project Name: home-assistant/home-assistant
Commit Name: 86aea83f644811053c7900c2833279c241cb2730
Time: 2015-09-15
Author: paulus@paulusschoutsen.nl
File Name: tests/components/device_tracker/test_init.py
Class Name: TestComponentsDeviceTracker
Method Name: test_update_stale