close
The Wayback Machine - https://web.archive.org/web/20201015125629/https://github.com/theupdateframework/tuf/pull/856
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

WIP: minor: fix bug in test_developer_tool #856

Open
wants to merge 1 commit into
base: develop
from

Conversation

@awwad
Copy link
Contributor

@awwad awwad commented Apr 16, 2019

The PR corrects a hole in one test's logic in test_developer_tool. It's another instance of a test not failing if an expected error is not raised, due to flawed try/except/else construction.

which failed to fail the test if an expected exception was raised.

Signed-off-by: Sebastien Awwad <sebastien.awwad@gmail.com>
@lukpueh lukpueh force-pushed the fix_another_try_except_else_test branch from 4a73a84 to 82fe71a Mar 17, 2020
@lukpueh
Copy link
Member

@lukpueh lukpueh commented Mar 17, 2020

The PR does indeed correct a hole in the developer tool unit test, with the consequence that the test now fails. We need to find out if the full test is still valid and if so fix the developer tool.

@jku
Copy link
Contributor

@jku jku commented Jul 1, 2020

Documentation:

The 'metadata_directory' and 'targets_directory' directories are created if they do not exist.

This is true: former is created with os.makedirs(), latter with os.mkdir() so the test as it's written should not expect failure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.