aboutsummaryrefslogtreecommitdiff
path: root/tests/fake_time.py
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2007-03-26 00:14:33 +0000
committerFelix Domke <tmbinc@elitedvb.net>2007-03-26 00:14:33 +0000
commit283c17a74cf11f40b822807f2d9f52644136c749 (patch)
treeb79b8675a7f27af8a39277b124c1e2e18d10e082 /tests/fake_time.py
parented1233982a70e0d9c816b00c8fa78a5521c9d347 (diff)
downloadenigma2-283c17a74cf11f40b822807f2d9f52644136c749.tar.gz
enigma2-283c17a74cf11f40b822807f2d9f52644136c749.zip
start to implement a test environment to run seperate components seperately.
Diffstat (limited to 'tests/fake_time.py')
-rw-r--r--tests/fake_time.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/fake_time.py b/tests/fake_time.py
new file mode 100644
index 00000000..09f88b49
--- /dev/null
+++ b/tests/fake_time.py
@@ -0,0 +1,10 @@
+import time
+
+real_time = time.time
+
+time_offset = real_time()
+
+def my_time():
+ return real_time() - time_offset
+
+time.time = my_time