xref: /libCEED/python/tests/conftest.py (revision 78a9fcb6bae7d7246469592ed2b1811dbe8e744f)
1# Copyright (c) 2017-2022, Lawrence Livermore National Security, LLC and other CEED contributors
2# All Rights Reserved. See the top-level LICENSE and NOTICE files for details.
3#
4# SPDX-License-Identifier: BSD-2-Clause
5#
6# This file is part of CEED:  http://github.com/ceed
7
8import pytest
9
10# -------------------------------------------------------------------------------
11# Add --ceed command line argument
12# -------------------------------------------------------------------------------
13
14
15def pytest_addoption(parser):
16    parser.addoption("--ceed", action="store", default='/cpu/self/ref/blocked')
17
18
19@pytest.fixture(scope='session')
20def ceed_resource(request):
21    ceed_resource = request.config.option.ceed
22
23    return ceed_resource
24
25# -------------------------------------------------------------------------------
26