-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
03af167
commit 8e2a5dc
Showing
2 changed files
with
45 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,5 +40,6 @@ def tearDown(self): | |
# os.environ[e] = self.env[e] | ||
pass | ||
|
||
|
||
if __name__ == '__main__': | ||
unittest.main() |
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,44 @@ | ||
# Licensed under a 3-clause BSD style license - see LICENSE.rst | ||
# -*- coding: utf-8 -*- | ||
""" | ||
hpsspy.test.test_scan | ||
~~~~~~~~~~~~~~~~~~~~~ | ||
Test the functions in the scan subpackage. | ||
""" | ||
# | ||
from __future__ import (absolute_import, division, print_function, | ||
unicode_literals) | ||
# | ||
import unittest | ||
# import json | ||
# from pkg_resources import resource_filename | ||
import os | ||
from ..scan import main | ||
|
||
|
||
class TestScan(unittest.TestCase): | ||
"""Test the functions in the scan subpackage. | ||
""" | ||
|
||
def setUp(self): | ||
# Store the original value of env variables, if present. | ||
# self.env = {'TMPDIR': None, 'HPSS_DIR': None} | ||
# for e in self.env: | ||
# if e in os.environ: | ||
# self.env[e] = os.environ['TMPDIR'] | ||
pass | ||
|
||
def tearDown(self): | ||
# Restore the original value of env variables, if they were present. | ||
# for e in self.env: | ||
# if self.env[e] is None: | ||
# if e in os.environ: | ||
# del os.environ[e] | ||
# else: | ||
# os.environ[e] = self.env[e] | ||
pass | ||
|
||
|
||
if __name__ == '__main__': | ||
unittest.main() |