Skip to content

Commit

Permalink
style: Format code with black and isort
Browse files Browse the repository at this point in the history
  • Loading branch information
deepsource-autofix[bot] authored Apr 7, 2023
1 parent 7836ad9 commit 527facf
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/recipes/gulp/conftest.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
import os
from unittest import mock

import numpy as np
import pytest
from ase.atoms import Atoms
from ase.calculators.gulp import GULP
from unittest import mock
import os


@pytest.fixture(autouse=True)
def mock_settings_env_vars():
with mock.patch.dict(os.environ, {"GULP_LIB": "."}):
yield


def mock_get_potential_energy(self, **kwargs):
# Instead of running .get_potential_energy(), we mock it by attaching
# dummy results to the atoms object and returning a fake energy. This
Expand Down

0 comments on commit 527facf

Please sign in to comment.