-
Notifications
You must be signed in to change notification settings - Fork 2
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
Create argument to display timestamps #44
Conversation
72a9c20
to
03ae867
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Dhwaniartefact It seems you still need to update the docs to include the new argument/flag.
11fe8fe
to
1333731
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Dhwaniartefact I don't see any changes to the documentation as I pointed in the previous review?
b174684
to
4279dbd
Compare
The --timestamp option will display the date and time of the AIP fixity scan.
31a7109
to
dfd23c1
Compare
dfd23c1
to
f5b1d1a
Compare
docs/fixity.1
Outdated
@@ -35,6 +35,10 @@ Request the Storage Service performs a local fixity check, instead of using the | |||
\fB\-\-debug\fR | |||
Print extra debugging output\. | |||
. | |||
.TP | |||
\fB\-\-timestamps\fR | |||
Add a timestamp to the beginning of each line of output.\. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a timestamp to the beginning of each line of output.\. | |
Add a timestamp to the beginning of each line of output\. |
docs/fixity.1.md
Outdated
* `--timestamps`: | ||
It adds a timestamp to the beginning of each line of output. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we maintain the alignment on the other options?
* `--timestamps`: | |
It adds a timestamp to the beginning of each line of output. | |
* `--timestamps`: | |
It adds a timestamp to the beginning of each line of output. |
tests/test_fixity.py
Outdated
@@ -74,6 +74,43 @@ def test_scan(_get, mock_check_fixity): | |||
] | |||
|
|||
|
|||
@mock.patch("fixity.utils.utcnow") | |||
@mock.patch("requests.get") | |||
def test_scan_if_timestamps_is_True(_get, utcnow, mock_check_fixity, capsys): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
def test_scan_if_timestamps_is_True(_get, utcnow, mock_check_fixity, capsys): | |
def test_scan_if_timestamps_argument_is_passed(_get, utcnow, mock_check_fixity, capsys): |
The
--timestamps
option will display the date and time of the AIP fixity scan.