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

Enable internal_config values to work with floats #34

Open
gaieges opened this issue Mar 11, 2020 · 0 comments
Open

Enable internal_config values to work with floats #34

gaieges opened this issue Mar 11, 2020 · 0 comments

Comments

@gaieges
Copy link
Contributor

gaieges commented Mar 11, 2020

If you add the following into the tests:

--- a/test.py
+++ b/test.py
@@ -26,7 +26,7 @@ def a_manifest(number_of_tasks=100,
                request_config=None,
                job_mode='batch',
                multi_challenge_manifests=None) -> basemodels.Manifest:
-    internal_config = {'exchange': {'a': 1, 'b': 'c'}}
+    internal_config = {'exchange': {'a': 1, 'b': 'c', 'd': .1}}
     model = {
         'requester_restricted_answer_set': {
             '0': {

It will break like so:

schematics.exceptions.DataError: {"internal_config": {"exchange": {"d": ["Couldn't interpret '1.1' as string."]}}}

Need to figure out how to make this work with floats

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

No branches or pull requests

1 participant