From 03281b652c9c1737a39da420f69c18f1013dfda9 Mon Sep 17 00:00:00 2001 From: gmatteo Date: Thu, 7 Sep 2023 17:57:04 +0200 Subject: [PATCH] Skip additional tests --- abipy/htc/base_models.py | 1 - abipy/htc/tests/test_base_models.py | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/abipy/htc/base_models.py b/abipy/htc/base_models.py index 19c0ccd08..4075bca9e 100644 --- a/abipy/htc/base_models.py +++ b/abipy/htc/base_models.py @@ -8,7 +8,6 @@ import inspect import time import zlib - #import numpy as np from typing import Any, Type, TypeVar, Optional, Iterable diff --git a/abipy/htc/tests/test_base_models.py b/abipy/htc/tests/test_base_models.py index c9ee4cdaa..437820e9c 100644 --- a/abipy/htc/tests/test_base_models.py +++ b/abipy/htc/tests/test_base_models.py @@ -4,7 +4,7 @@ #from pprint import pprint import os import zlib -import mongomock +import pytest from typing import List from pydantic.main import ModelMetaclass @@ -15,6 +15,8 @@ from abipy.htc.base_models import (AbipyModel, MongoConnector, MockedMongoConnector, QueryResults, GfsFileDesc, TopLevelModel, mng_insert_models) +mongomock = pytest.importskip("mongomock") + class SubModel(AbipyModel): abi_structure: abi_Structure