Commits

guillermooo committed e00bc27

add tests

  • Participants
  • Parent commits 8455baa

Comments (0)

Files changed (2)

File PackageTesting.json

+{
+  "working_dir": "SublimeHg",
+  "data": {
+    "main": "tests/data/data.txt"
+  },
+
+"test_suites": {
+  "utils": ["package_testing_run_data_file_based_tests", "tests.test_utils"]
+  }
+}

File tests/test_utils.py

+import unittest
+import os
+
+from test_runner import tests_state
+
+from shglib import utils
+
+
+class TestHelpers(unittest.TestCase):
+    def sartUp(self):
+        # ss = test_runner.test_view.settings.get('packages.sublime_hg.hg_exe')
+        pass
+
+    def testPushd(self):
+        cwd = os.getcwdu()
+        target = os.environ["TEMP"]
+        with utils.pushd(target):
+            self.assertEqual(os.getcwdu(), target)
+        self.assertEqual(os.getcwdu(), cwd)