Page MenuHomeDevCentral

test_clear_video_queue.py
No OneTemporary

test_clear_video_queue.py

#!/usr/bin/env python3
import unittest
from helpers import import_from_path
script_path = "roles/paas-docker/containers/files/mastodon/clear-video-queue.py"
script = import_from_path("script", script_path)
class Testinstance(unittest.TestCase):
def test_extract_pids(self):
with open("data/T1492-ps-x-sample.txt", "r") as fd:
ps_data = [line.strip() for line in fd]
expected_pids = [11562, 11693, 11895]
self.assertEqual(expected_pids, script.extract_pids(ps_data))
if __name__ == "__main__":
unittest.main()

File Metadata

Mime Type
text/x-python
Expires
Tue, Oct 6, 02:34 (1 d, 19 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4074566
Default Alt Text
test_clear_video_queue.py (561 B)

Event Timeline