Skip to content

[Bug] String based memory is not validated #485

Description

@niklassiemer

According to

if isinstance(memory_max, (int, float)):
memory_max = value_in_range(
value=memory_max, value_max=active_queue["memory_max"]
)

the value of the memory is not checked if it is a string, however,

if value is not None:
value_, value_min_, value_max_ = [
(
_memory_spec_string_to_value(v)
if v is not None and isinstance(v, str)
else v
)
for v in (value, value_min, value_max)
]

looks like it capable of checking this!

Indeed, I would like any string for a memory not passing the _is_memory_string check to be rejected by pysqa.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions