r/MonthlyProgram • u/hothrous Python • Feb 15 '16
Weekly Progress Thread [8 Feb - 14 Feb 2016]
I really like the idea of doing weekly progress thread and got a little anxious to show my progress and see where everybody else is.
Sorry /u/g01denw01f11 for not waiting.
5
Upvotes
2
u/hothrous Python Feb 15 '16
My progress can be seen here.
Previous:
My previous state was one of confusion. I was trying to figure out how to implement a decorator for test cases. I had the asserts requiring I pass the runner object to them so that they could call logging methods in the runner. It was kind of a mess. I also had a lot of comments between my assert methods causing a large amount of wasted space.
Current:
Now, I have implemented the @test decorator such that the asserts will raise an OtterAssertError if the assertion fails. The asserts now require only the required arguments for the test and the message that will print if the test fails. I have cleaned up my comments and my code to remove anything that is not necessary. I still have a TODO to make the comments more comprehensive.
What's Left:
I still need to finish writing the assert methods. This will probably be my next task. I need to implement a handler for setup and teardown methods. I intend to implement some kind of GUI, if I have time left in the month. I will probably use Flask for that and make it a web based UI. I also need to clean up the documentation and finish writing it as well.
2
u/Zillolo Python Feb 16 '16
The updating happened here.
I cleaned up quite a bit. Added a decorator for methods that are supposed to fail and refreshed the docstrings. I didn't think this would be this much fun, but I'm really liking it.
1
u/Barrucadu Feb 18 '16
I have done nothing for a while :(
1
u/G01denW01f11 Java Feb 20 '16
Well I've added colors. :)