Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Implements Tethys Reactpy App Scaffold #1081
base: main
Are you sure you want to change the base?
Implements Tethys Reactpy App Scaffold #1081
Changes from 25 commits
67b2098
b16676e
a585699
debe2a4
0c9ecc4
f6cc1a9
9324df4
521eef0
55e31f9
645e4de
80eea3d
408b7ab
fdfb0a5
dc93f59
5628657
33e0632
4640634
af5cb81
3e59a05
3c67bcc
8d48e47
79e44ad
64732c5
b5493d2
4c9697b
ae1d688
46b4f83
1bdcdcf
f7af003
b6178b8
9122f42
305a910
0718fd5
d898438
f0e00e9
01bdf94
8a810af
8ab53d4
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
This file was deleted.
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.
Why are these argparse.Namespaces? Seems like they should be simple dicts.
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.
I just wanted a mock-like instance of UrlMap... I should have just used a mock.MagicMock object, lol. I'll swap it for that.
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.
Turns out I must've chosen
Namespace
for a reason. Usingmock.MagicMock
causes the tests to fail because mocking the propertyname
cannot be done on initialization (see mock docs). While I could have broken it out into two steps, it seemed like usingNamespace
shouldn't be a big deal. Let me know if you disagree.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.
Try using the
UrlMaps
for the test instead of theNamespace
.