Skip to content

Commit

Permalink
add placeholder for scan tests
Browse files Browse the repository at this point in the history
  • Loading branch information
weaverba137 committed Jun 5, 2016
1 parent 03af167 commit 8e2a5dc
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
1 change: 1 addition & 0 deletions hpsspy/test/test_os.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,6 @@ def tearDown(self):
# os.environ[e] = self.env[e]
pass


if __name__ == '__main__':
unittest.main()
44 changes: 44 additions & 0 deletions hpsspy/test/test_scan.py
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()

0 comments on commit 8e2a5dc

Please sign in to comment.