Skip to content

Have repository_tool.get_filepaths_in_directory use absolute paths #774

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 2 commits into from
Aug 21, 2018

Conversation

awwad
Copy link
Contributor

@awwad awwad commented Aug 20, 2018

Two changes:

  • Have repository_tool.get_filepaths_in_directory use absolute paths as its docstring says that it does.
  • Have the test for that function correctly test for such (and also test functionality a bit more).

I'm not sure if this changed through some accident along the way, but in any case, before this PR, the docstring for repository_tool.get_filepaths_in_directory() said that it yielded a list of absolute paths, but it did not. Now it does.

Fixes issue #: No prior issue identified

Please verify and check that the pull request fulfills the following
requirements
:

  • [ N/A ] The code follows the Code Style Guidelines
  • [ N/A ] Tests have been added for the bug fix or new feature
  • [ N/A ] Docs have been added for the bug fix or new feature

as its docstring says that it does. I'm not sure if this changed through
some accident along the way, but in any case, before this commit, the
docstring said that it yielded a list of absolute paths, but it did not.

Now it does.

Signed-off-by: Sebastien Awwad <[email protected]>
awwad added a commit that referenced this pull request Aug 20, 2018
(that is, despite currently existing issue to be remedied in #774)

Currently, repository_tool.get_filepaths_in_directory yields
relative paths, not the absolute paths it promises in its docstring.
This test will now function despite this and continue to function
after #774 is merged.

Signed-off-by: Sebastien Awwad <[email protected]>
@awwad awwad requested a review from SantiagoTorres August 20, 2018 22:55
The test for repository_tool.get_filepaths_in_directory now expects
absolute paths, and also now tests the *results* of the function's use when
the recursive flag is on.

Signed-off-by: Sebastien Awwad <[email protected]>
@awwad awwad changed the title (WIP) Have repository_tool.get_filepaths_in_directory use absolute paths Have repository_tool.get_filepaths_in_directory use absolute paths Aug 21, 2018
@awwad awwad merged commit 9862252 into develop Aug 21, 2018
awwad added a commit that referenced this pull request Aug 21, 2018
(that is, despite currently existing issue to be remedied in #774)

Currently, repository_tool.get_filepaths_in_directory yields
relative paths, not the absolute paths it promises in its docstring.
This test will now function despite this and continue to function
after #774 is merged.

Signed-off-by: Sebastien Awwad <[email protected]>
@awwad awwad deleted the fix_get_fpaths_in_dir branch November 5, 2018 21:58
@lukpueh lukpueh mentioned this pull request Apr 29, 2019
lukpueh pushed a commit to lukpueh/tuf that referenced this pull request Nov 11, 2019
…mework#774

(that is, despite currently existing issue to be remedied in theupdateframework#774)

Currently, repository_tool.get_filepaths_in_directory yields
relative paths, not the absolute paths it promises in its docstring.
This test will now function despite this and continue to function
after theupdateframework#774 is merged.

Signed-off-by: Sebastien Awwad <[email protected]>
lukpueh pushed a commit to lukpueh/tuf that referenced this pull request Nov 19, 2019
…mework#774

(that is, despite currently existing issue to be remedied in theupdateframework#774)

Currently, repository_tool.get_filepaths_in_directory yields
relative paths, not the absolute paths it promises in its docstring.
This test will now function despite this and continue to function
after theupdateframework#774 is merged.

Signed-off-by: Sebastien Awwad <[email protected]>
lukpueh pushed a commit that referenced this pull request Dec 16, 2019
(that is, despite currently existing issue to be remedied in #774)

Currently, repository_tool.get_filepaths_in_directory yields
relative paths, not the absolute paths it promises in its docstring.
This test will now function despite this and continue to function
after #774 is merged.

Signed-off-by: Sebastien Awwad <[email protected]>
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.

1 participant