Skip to content

Commit

Permalink
test: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bolinocroustibat committed Jul 10, 2024
1 parent 24a3426 commit a3c81b9
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 20 deletions.
4 changes: 2 additions & 2 deletions udata/forms/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
from flask_storage.mongo import ImageReference
from speaklater import is_lazy_string
from wtforms import Field as WTField
from wtforms import Form as WTForm # noqa
from wtforms import fields, validators
from wtforms import Form as WTForm
from wtforms import SubmitField, fields, validators # noqa
from wtforms.utils import unset_value
from wtforms.widgets import TextInput
from wtforms_json import flatten_json
Expand Down
38 changes: 20 additions & 18 deletions udata/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,33 +1,35 @@
from mongoengine.errors import ValidationError
from mongoengine.errors import ValidationError # noqa

import udata.linkchecker.models # noqa
from udata import entrypoints
from udata.core.activity.models import * # noqa
from udata import entrypoints # noqa
from udata.mongo import * # noqa

# Load all core models and mixins
from udata.core.spatial.models import * # noqa
from udata.core.metrics.models import * # noqa
from udata.core.badges.models import * # noqa
from udata.core.contact_point.models import * # noqa
from udata.core.dataset.models import * # noqa
from udata.core.discussions.models import * # noqa
from udata.core.followers.models import * # noqa
from udata.core.jobs.models import * # noqa
from udata.core.metrics.models import * # noqa
from udata.core.user.models import * # noqa
from udata.core.organization.models import * # noqa
from udata.core.post.models import * # noqa
from udata.core.reports.models import * # noqa
from udata.core.reuse.models import * # noqa
from udata.core.contact_point.models import * # noqa
from udata.core.site.models import * # noqa
from udata.core.dataset.models import * # noqa
from udata.core.reuse.models import * # noqa
from udata.core.activity.models import * # noqa
from udata.core.topic.models import * # noqa
from udata.core.post.models import * # noqa
from udata.core.jobs.models import * # noqa
from udata.core.tags.models import * # noqa
from udata.core.spam.models import * # noqa
from udata.core.reports.models import * # noqa

# Load all core models and mixins
from udata.core.spatial.models import * # noqa
from udata.core.tags.models import * # noqa
from udata.core.topic.models import * # noqa
from udata.core.user.models import * # noqa
from udata.features.territories.models import * # noqa
from udata.features.transfer.models import * # noqa
from udata.features.territories.models import * # noqa

# Load HarvestSource model as harvest for catalog
from udata.harvest.models import HarvestSource as Harvest # noqa
from udata.mongo import *

import udata.linkchecker.models # noqa


def init_app(app):
Expand Down

0 comments on commit a3c81b9

Please sign in to comment.