Pulp: Issueshttps://pulp.plan.io/https://pulp.plan.io/favicon.ico2018-06-22T19:46:59ZPulp
Planio Pulp - Issue #3785 (CLOSED - WONTFIX): pulpcore-plugin does not have documentation for ModelSeria...https://pulp.plan.io/issues/37852018-06-22T19:46:59Zmuattiyah
<p>In <a href="https://github.com/pulp/pulp/pull/3531" class="external">https://github.com/pulp/pulp/pull/3531</a> we added extra validation such that if extra parameters that are not defined are passed to the serializer, it will raise a `serializers.ValidationError`.</p>
<p>The plugin API documentation is missing a description for ModelSerializer.validate()[0]. Plugin writers would benefit from knowing the type of validation provided by pulpcore.</p>
<p>[0] <a href="https://docs.pulpproject.org/en/pulpcore-plugin/nightly/api-reference/serializers.html#pulpcore.plugin.serializers.ModelSerializer.validate" class="external">https://docs.pulpproject.org/en/pulpcore-plugin/nightly/api-reference/serializers.html#pulpcore.plugin.serializers.ModelSerializer.validate</a></p> Pulp - Task #3781 (CLOSED - WONTFIX): Unify the use of the mock modulehttps://pulp.plan.io/issues/37812018-06-22T11:46:54Zmuattiyah
<p>Sometimes we use the `mock` module from PyPI and sometimes we use it from `unittest.mock`.</p>
<p>Given that we only care about CPython 3.5+ and `unittest.mock` has been available since CPython 3.3, we should probably get rid of the PyPI one completely and update the code that uses it accordingly.</p>