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

Create argument to display timestamps #44

Merged
merged 4 commits into from
Jun 21, 2024

Conversation

Dhwaniartefact
Copy link
Contributor

@Dhwaniartefact Dhwaniartefact commented Jun 14, 2024

The --timestamps option will display the date and time of the AIP fixity scan.

@Dhwaniartefact Dhwaniartefact force-pushed the dev/issue-fixity-report-unsorted branch from 72a9c20 to 03ae867 Compare June 14, 2024 23:29
Copy link
Member

@replaceafill replaceafill left a 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.

fixity/fixity.py Outdated Show resolved Hide resolved
fixity/utils.py Outdated Show resolved Hide resolved
tests/test_fixity.py Outdated Show resolved Hide resolved
fixity/fixity.py Show resolved Hide resolved
fixity/fixity.py Outdated Show resolved Hide resolved
fixity/fixity.py Outdated Show resolved Hide resolved
tests/test_fixity.py Outdated Show resolved Hide resolved
@Dhwaniartefact Dhwaniartefact force-pushed the dev/issue-fixity-report-unsorted branch from 11fe8fe to 1333731 Compare June 19, 2024 02:35
Copy link
Member

@replaceafill replaceafill left a 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?

fixity/utils.py Outdated Show resolved Hide resolved
@Dhwaniartefact Dhwaniartefact force-pushed the dev/issue-fixity-report-unsorted branch from b174684 to 4279dbd Compare June 21, 2024 15:32
The --timestamp option will display the date and time of the AIP fixity scan.
@Dhwaniartefact Dhwaniartefact force-pushed the dev/issue-fixity-report-unsorted branch 2 times, most recently from 31a7109 to dfd23c1 Compare June 21, 2024 17:51
@Dhwaniartefact Dhwaniartefact force-pushed the dev/issue-fixity-report-unsorted branch from dfd23c1 to f5b1d1a Compare June 21, 2024 18:08
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.\.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
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
Comment on lines 38 to 39
* `--timestamps`:
It adds a timestamp to the beginning of each line of output.
Copy link
Member

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?

Suggested change
* `--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.

@@ -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):
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
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):

@replaceafill replaceafill changed the title Create argument to display timestamp Create argument to display timestamps Jun 21, 2024
@Dhwaniartefact Dhwaniartefact merged commit 992682f into master Jun 21, 2024
8 checks passed
@Dhwaniartefact Dhwaniartefact deleted the dev/issue-fixity-report-unsorted branch June 21, 2024 18:44
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.

2 participants