-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GaudiConfig2: converted tests to pytest
- Loading branch information
Showing
16 changed files
with
164 additions
and
253 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
##################################################################################### | ||
# (c) Copyright 2023 CERN for the benefit of the LHCb and ATLAS collaborations # | ||
# # | ||
# This software is distributed under the terms of the Apache version 2 licence, # | ||
# copied verbatim in the file "LICENSE". # | ||
# # | ||
# In applying this licence, CERN does not waive the privileges and immunities # | ||
# granted to it by virtue of its status as an Intergovernmental Organization # | ||
# or submit itself to any jurisdiction. # | ||
##################################################################################### | ||
import pytest | ||
from GaudiConfig2 import Configurable, useGlobalInstances | ||
|
||
|
||
@pytest.fixture | ||
def with_global_instances(): | ||
Configurable.instances.clear() | ||
useGlobalInstances(True) | ||
yield | ||
Configurable.instances.clear() | ||
useGlobalInstances(False) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.