33b6c38639431160bc1a67db57931116bfe044a2,jarbas/core/tests/test_irregularities_command.py,TestMain,test_main,#TestMain#Any#Any#Any#,73

Before Change


        irregularities.return_value = [({"filter": 0}, {"content": 1})]
        self.command.count = 999
        self.command.main()
        print_calls = (
            call("Preparing updates…", end="\r"),
            call("1,000 reimbursements updated.", end="\r")
        )
        print_.assert_has_calls(print_calls)
        update.assert_called_once_with(({"filter": 0}, {"content": 1}))
        self.assertEqual(1000, self.command.count)

After Change


        irregularities.return_value = (range(21), range(21, 43))
        self.command.main()
        update.assert_has_calls([call()] * 2)
        schedule_update.assert_has_calls(call(i) for i in range(42))

    @patch.object(Reimbursement.objects, "get")
    def test_schedule_update_existing_record(self, get):
        reimbursement = Reimbursement()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: okfn-brasil/serenata-de-amor
Commit Name: 33b6c38639431160bc1a67db57931116bfe044a2
Time: 2017-01-06
Author: cuducos@gmail.com
File Name: jarbas/core/tests/test_irregularities_command.py
Class Name: TestMain
Method Name: test_main


Project Name: pantsbuild/pants
Commit Name: adc7c4b7f75c0f2ba8fc157018b39efff0ba5218
Time: 2015-01-29
Author: dturner@twopensource.com
File Name: tests/python/pants_test/util/test_keywords.py
Class Name: TestKeywords
Method Name: test_keyword_replaced


Project Name: pantsbuild/pants
Commit Name: adc7c4b7f75c0f2ba8fc157018b39efff0ba5218
Time: 2015-01-29
Author: dturner@twopensource.com
File Name: tests/python/pants_test/util/test_keywords.py
Class Name: TestKeywords
Method Name: test_non_keyword_file