Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix tests #183

Closed
wants to merge 0 commits into from
Closed

Fix tests #183

wants to merge 0 commits into from

Conversation

untitaker
Copy link
Member

No description provided.

@untitaker untitaker changed the title Strictly separate new and update Fix tests Mar 30, 2015
@untitaker
Copy link
Member Author

@geier Please verify that the tests are now not too liberal.

@geier
Copy link
Member

geier commented Mar 31, 2015

I think the tests are too loose now, we can produce pretty broken VTIMEZONE components without failing the tests now.

I was thinking about giving freezegun a try (just learned about it this weekend).

On 30. März 2015 18:22:29 MESZ, Markus Unterwaditzer notifications@github.com wrote:

@geier Please verify that the tests are now not too liberal.


Reply to this email directly or view it on GitHub:
#183 (comment)

@untitaker
Copy link
Member Author

I think the tests are too loose now, we can produce pretty broken VTIMEZONE components without failing the tests now.

Which ones, for example?

Syntactically invalid properties are unlikely to occur because icalendar takes care of that for us. The order of the properties doesn't matter, too, and it's also unlikely that we're putting a property into the wrong kind of component.

We could also parse either of them and compare their contents.

@geier
Copy link
Member

geier commented Mar 31, 2015

The way it is now we cannot detect if standard or DST time is +0100 or +0200 (initially this was in the wrong order and we would not detect it with these tests)

@geier
Copy link
Member

geier commented Mar 31, 2015

perhaps the best solution would be to use cached vtimezone components #146

@untitaker untitaker force-pushed the fixtests branch 3 times, most recently from 4d4a8fd to c174d93 Compare April 1, 2015 00:04
@untitaker
Copy link
Member Author

@geier Please review.

@geier
Copy link
Member

geier commented Apr 1, 2015

I'm much happier with this, please merge if it does indeed work.

@untitaker
Copy link
Member Author

Done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants