Skip to content

replace bootstrap with tox - #26

Merged
cbodley merged 4 commits into
masterfrom
wip-tox
Feb 20, 2023
Merged

cbodley merged 4 commits into
masterfrom
wip-tox

Conversation

@cbodley

@cbodley cbodley commented Jan 31, 2023

Copy link
Copy Markdown

No description provided.

Signed-off-by: Casey Bodley <[email protected]>
Signed-off-by: Casey Bodley <[email protected]>
Signed-off-by: Casey Bodley <[email protected]>
  ragweed/framework.py:385: DeprecationWarning: This method will be removed in future versions.  Use 'parser.read_file()' instead.
    cfg.readfp(f)

Signed-off-by: Casey Bodley <[email protected]>
Comment thread ragweed/framework.py
return sc
if not storage_class:
storage_class = 'STANDARD'
return self.storage_classes[storage_class] # may raise KeyError

@alimaredia alimaredia Feb 17, 2023 •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

@cbodley Was your logic behind this case that a KeyError would be thrown if the storage_class didn't exist in storage_classes and that would be adequate for someone running this test suite to diagnose what was wrong if this KeyError was hit?

@cbodley cbodley Feb 17, 2023 •

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

that's right. eq(string, 0) was a roundabout way to raise an exception with an error message. raising the KeyError directly is simpler and the error message will include this self.storage_classes variable

@cbodley
cbodley merged commit 1b28a70 into master Feb 20, 2023
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