Skip to content

Refactor/Baseline Unit Tests #6

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

Merged
merged 18 commits into from
Jan 6, 2020
Merged

Refactor/Baseline Unit Tests #6

merged 18 commits into from
Jan 6, 2020

Conversation

scgbear
Copy link
Member

@scgbear scgbear commented Dec 19, 2019

Resolves #5



# pycharm
.idea
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can remove pycharm based files.

Copy link
Member Author

Choose a reason for hiding this comment

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

Remove them from the .gitignore? That would add the files to the github repo. We have the .vscode files there, but I usually try to avoid putting IDE specific files especially when there are dev machine specific configurations in them. I can see the value in adding the .vscode files here as they have none dev machine specific configuration in there. Not the case for the pycharm files.

@@ -7,5 +7,5 @@ def __init__(self):
self.EventType: HistoryEventType
self.EventId: int
self.IsPlayed: bool
self.Timestamp: datetime
self.Timestamp: str
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is there a reason why Timestamp is changed to a str type?

Copy link
Member Author

Choose a reason for hiding this comment

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

Was receiving an error. Timestamp as json is a string value, a conversion stepis required to get it into a datetime. The dtparse is required/already being used to convert the string to a date prior to processing.

e.g. self.currentUtcDateTime = dtparse(decisionStartedEvent["Timestamp"])

@scgbear scgbear merged commit 022b514 into Azure:master Jan 6, 2020
@scgbear scgbear deleted the refactor/first-pass branch January 6, 2020 20:34
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.

Code refactor/Clean up
2 participants