Skip to content
This repository has been archived by the owner on May 30, 2020. It is now read-only.

Resurrect some tests #535

Closed
wants to merge 2 commits into from
Closed

Conversation

Carreau
Copy link
Contributor

@Carreau Carreau commented Oct 6, 2016

This resurrect (and skip) some tests mostly in the hope that when
minimal modification are made to the code base they can be unit tested.

This will allow @michaelpacer to write tests for #506

Also if you can enable travis-ci :-) Unless you prefer something like CircleCI....

@@ -16,7 +16,7 @@

def main(argv):
if len(argv) != 3:
print "Usage: apache_count.py configfile logfile"
print("Usage: apache_count.py configfile logfile")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How is this working without from __future__ import print_function?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, it prints a 1-tuple. But that's just because I forgot to commit the from __future__ ... which should be fixed now.

This resurrect (and skip) some tests mostly in the hope that when
minimal modification are made to the code base they can be unit tested.
@@ -99,6 +100,7 @@ def _test_useragent(self):
self.assertEquals(logs[45]['useragent'],
'Python-urllib/2.5 setuptools/0.6c7')

@pytest.mark.skip(reason="No clue how this one is supposed to work")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe xfail instead of skip?

@Carreau Carreau closed this Apr 14, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants