Expand BooleanField's default_values for stepthrough test
This commit is contained in:
parent
90ada6992b
commit
bcf74b09eb
@ -21,8 +21,8 @@ class POCForm(ValidatedForm):
|
|||||||
|
|
||||||
am_poc = BooleanField(
|
am_poc = BooleanField(
|
||||||
"I am the technical POC.",
|
"I am the technical POC.",
|
||||||
validators=[Required()],
|
default=False,
|
||||||
default=False
|
false_values=(False, "false", "False", "no", "")
|
||||||
)
|
)
|
||||||
|
|
||||||
fname_poc = StringField("POC First Name", validators=[Required()])
|
fname_poc = StringField("POC First Name", validators=[Required()])
|
||||||
|
@ -7,7 +7,6 @@ export default {
|
|||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
onInput: function (e) {
|
onInput: function (e) {
|
||||||
console.log(e)
|
|
||||||
this.$root.$emit('field-change', {
|
this.$root.$emit('field-change', {
|
||||||
value: e.target.checked,
|
value: e.target.checked,
|
||||||
name: this.name
|
name: this.name
|
||||||
|
@ -56,7 +56,7 @@ class RequestFactory(factory.alchemy.SQLAlchemyModelFactory):
|
|||||||
def build_request_body(cls, user, dollar_value=1000000):
|
def build_request_body(cls, user, dollar_value=1000000):
|
||||||
return {
|
return {
|
||||||
"primary_poc": {
|
"primary_poc": {
|
||||||
"am_poc": "no",
|
"am_poc": False,
|
||||||
"dodid_poc": user.dod_id,
|
"dodid_poc": user.dod_id,
|
||||||
"email_poc": user.email,
|
"email_poc": user.email,
|
||||||
"fname_poc": user.first_name,
|
"fname_poc": user.first_name,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user