ソースを参照

make sure that we only handle hash urls..

main
コミット
69472c666c
1個のファイルの変更4行の追加0行の削除
  1. +4
    -0
      casimport/__init__.py

+ 4
- 0
casimport/__init__.py ファイルの表示

@@ -689,3 +689,7 @@ class Test(unittest.TestCase):
# that when read raises an exception
with self.assertRaises(ValueError):
fdcas.fetch_data(urllib.parse.urlparse('hash://sha256/0000'))

# that when passed an invalid url
with self.assertRaises(ValueError):
fdcas.fetch_data(urllib.parse.urlparse('https://sha256/0000'))

読み込み中…
キャンセル
保存