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 for record file option parsing #107

Merged
merged 2 commits into from Jan 14, 2015

Conversation

hyades
Copy link
Member

@hyades hyades commented Jan 10, 2015

No description provided.

@@ -376,10 +376,10 @@ def test_new_record(self):

curr_time = datetime.datetime.now()
alt_curr_time = curr_time + datetime.timedelta(0, 1)
time_str = curr_time.strftime('%Y-%m-%d %H%M%S')
Copy link
Member

Choose a reason for hiding this comment

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

Just use %Y.

Or you could use %q maybe instead?

@mithro mithro changed the title Fix record file format for API Fix tests for record file option parsing Jan 10, 2015
@@ -40,7 +40,7 @@ def __init__(
video_port=3000,
audio_port=4000,
control_port=5000,
record_file='record.data'):
record_file='record-%Y-%m-%d_%H%M%S.data'):
Copy link
Member

Choose a reason for hiding this comment

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

This should be left empty by default I think.

record_file=True means -r and you get the default file name inside gst-switch-server.
record_file='record-%Y-%m-%d' should be the same as --record="record-%Y-%m-%d" and you get files of the name you specify.

@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling e8e90bc on hyades:api_record_file_format into 27a2d40 on timvideos:master.

@hyades
Copy link
Member Author

hyades commented Jan 10, 2015

@mithro updated commit.
Now, using a year format for integration tests. The default option in the Python API still remains to record in the year-month-date_time format.

@mithro mithro added this to the At TimVideos Sprints milestone Jan 10, 2015
@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling 3bf37fe on hyades:api_record_file_format into 27a2d40 on timvideos:master.

@mithro
Copy link
Member

mithro commented Jan 12, 2015

I think #117 conflicts with this pull request.

@hyades and @MaZderMind - can you guys figure out which one I should merge?

@hyades
Copy link
Member Author

hyades commented Jan 12, 2015

@mithro: #117 is closed. You may merge this one.

@landscape-bot
Copy link

Code Health
Code quality remained the same when pulling f3698c5 on hyades:api_record_file_format into 34a2532 on timvideos:master.

@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling f3698c5 on hyades:api_record_file_format into 34a2532 on timvideos:master.

@hyades hyades mentioned this pull request Jan 12, 2015
@mithro
Copy link
Member

mithro commented Jan 14, 2015

LGTM - merging.

mithro added a commit that referenced this pull request Jan 14, 2015
Fix tests for record file option parsing
@mithro mithro merged commit e2e2491 into timvideos:master Jan 14, 2015
@mithro mithro deleted the api_record_file_format branch January 16, 2015 05:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants