fix(faker): Handle change of min (to min_value) arg for pyint

Description

Abstract

Replace min arg when calling factory.Faker(“pyint”… with its new min_value name.

Motivation

The new argument name broke the tests.

Rationale

N/A

Info

Hash

7f8ecb5a18ba84e65ffceaa7f33496a8d64197c6

Date

2019-08-15 23:15:21 +0200

Parents
  • Merge branch ‘feature/twidi/base-entities’ into develop [0687e29b]2019-06-07 21:06:25 +0200

Children
  • chore(make): Upgrade pip in `dev-upgrade` make command [e4d137ff]2019-08-15 23:26:05 +0200

Branches
Tags

(No tags)

Changes

isshub/domain/contexts/core/entities/namespace/tests/factories.py

Type

Modified

Stats

+1 -1

@@ -18,6 +18,6 @@ class NamespaceFactory(factory.Factory):

         model = Namespace

-    id = factory.Faker("pyint", min=1)
+    id = factory.Faker("pyint", min_value=1)
     name = factory.Faker("pystr", min_chars=2)
     kind = factory.Faker("enum", enum_cls=NamespaceKind)

isshub/domain/contexts/core/entities/repository/tests/factories.py

Type

Modified

Stats

+1 -1

@@ -15,6 +15,6 @@ class RepositoryFactory(factory.Factory):

         model = Repository

-    id = factory.Faker("pyint", min=1)
+    id = factory.Faker("pyint", min_value=1)
     name = factory.Faker("pystr", min_chars=2)
     namespace = factory.SubFactory(NamespaceFactory)