{"push_id":765694378,"size":5,"distinct_size":5,"ref":"refs/heads/pytest","head":"a82e3cadf9f94cc786852a71b8e39cc36a5cf3ef","before":"4354edfa015c2af2ceee9e34ccbd96f52ff6a93a","commits":[{"sha":"3bd371ae3b43807b311b3876b7f5b1a2036fa394","author":{"email":"a51dda7c7ff50b61eaea0444371f4a6a9301e501@jerrykan.com","name":"John Kristensen"},"message":"Update tests to work with py.test\n\npy.test searches for any class that looks like a TestCase in the test\ndirectory and tries to run them as tests. Some of the classes that\ninherit TestCase are not meant to be run and are only intended to be\n\"helper classes\". Only the tests of the classes that inherit the \"helper\nclasses\" should be run. If we convert these \"helper classes\" to be\n\"mixins\" py.test should not pick them up.","distinct":true,"url":"https://api.github.com/repos/jerrykan/herder/commits/3bd371ae3b43807b311b3876b7f5b1a2036fa394"},{"sha":"8eb4e0b477323c0c502dcb4495bb309b1639bb83","author":{"email":"a51dda7c7ff50b61eaea0444371f4a6a9301e501@jerrykan.com","name":"John Kristensen"},"message":"Update test/test_actions.py to work with py.test\n\nThe test_actions tests use a FieldStorage object to mock form\nsubmissions. FieldStorage would usually use the 'QUERY_STRING'\nenvironment variable to populate the initial list of MiniFieldStorage\nvalues stored within the FieldStorage object, but because there is no\n'QUERY_STRING' environment variable when running the test from the\ncommandline it tries to parse sys.argv instead. If any py.test options\nare used (ie. '--tb=short') then they may end up in the MiniFieldStorage\nlist causing some tests to fail because they were not expecting the\nextra MiniFieldStorage values.\n\nTo fix this we explicitly pass an dict with an empty 'QUERY_STRING'\nvalue as the FieldStorage environ argument to ensure that the initial\nMiniFieldStorage list is empty.","distinct":true,"url":"https://api.github.com/repos/jerrykan/herder/commits/8eb4e0b477323c0c502dcb4495bb309b1639bb83"},{"sha":"e90d580400e1729689c9fae6e9d6e2c848195a96","author":{"email":"a51dda7c7ff50b61eaea0444371f4a6a9301e501@jerrykan.com","name":"John Kristensen"},"message":"Rename TestMessage to ExampleMessage\n\nWhen py.test is searching for tests it detects TestMessage as a\npotential class with test cases because it has 'Test' in its name.\nBecause TestMessage contains a __init__ constructor py.test returns a\nwarning that it can't collect tests from it. Lets rename the class to\nExampleMessage to avoid this issue.","distinct":true,"url":"https://api.github.com/repos/jerrykan/herder/commits/e90d580400e1729689c9fae6e9d6e2c848195a96"},{"sha":"82a16d9a56e58265f98a8afc6762045f289a2b86","author":{"email":"a51dda7c7ff50b61eaea0444371f4a6a9301e501@jerrykan.com","name":"John Kristensen"},"message":"Replace existing run_tests.py script with a pytest script\n\nThe existing run_test.py script is quite old, a bit restrictive, and\ndoesn't always behave as documented. The pytest testing tool mature,\nwell documented, and maintained.","distinct":true,"url":"https://api.github.com/repos/jerrykan/herder/commits/82a16d9a56e58265f98a8afc6762045f289a2b86"},{"sha":"a82e3cadf9f94cc786852a71b8e39cc36a5cf3ef","author":{"email":"a51dda7c7ff50b61eaea0444371f4a6a9301e501@jerrykan.com","name":"John Kristensen"},"message":"Remove unneeded TestSuite code from tests\n\nThe TestSuite code is no longer needed now that we are using py.test\nwhich can automatically discover tests","distinct":true,"url":"https://api.github.com/repos/jerrykan/herder/commits/a82e3cadf9f94cc786852a71b8e39cc36a5cf3ef"}]}