diff options
author | Luka Hartwig <mail@lukahartwig.de> | 2020-02-04 23:42:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-04 17:42:07 -0500 |
commit | 7d115a2a657fcfc54670e56cad3fe44fc7a59a9f (patch) | |
tree | 3120d3b704c71391c2733d17c32577073b190afa /tools/fetch_test.py | |
parent | 184be99f5b6e85a6041e72dfdd0afda46e5f8619 (diff) |
refactor: port fetch test to rust (#3887)
Diffstat (limited to 'tools/fetch_test.py')
-rwxr-xr-x | tools/fetch_test.py | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/tools/fetch_test.py b/tools/fetch_test.py deleted file mode 100755 index 4dad99b14..000000000 --- a/tools/fetch_test.py +++ /dev/null @@ -1,32 +0,0 @@ -#!/usr/bin/env python -# Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. -import os -import shutil -import sys - -import http_server -from test_util import DenoTestCase, run_tests -from util import mkdtemp, tests_path, run_output - - -class TestFetch(DenoTestCase): - def test_fetch(self): - deno_dir = mkdtemp() - try: - t = os.path.join(tests_path, "006_url_imports.ts") - result = run_output([self.deno_exe, "fetch", t], - quiet=True, - merge_env={"DENO_DIR": deno_dir}) - self.assertEqual(result.out, "") - self.assertEqual(result.code, 0) - # Check that we actually did the prefetch. - os.path.exists( - os.path.join( - deno_dir, - "deps/http/localhost_PORT4545/cli/tests/subdir/mod2.ts")) - finally: - shutil.rmtree(deno_dir) - - -if __name__ == "__main__": - run_tests() |