From f9b06385f19c82bce551f869cbfa0c116cc6cbf8 Mon Sep 17 00:00:00 2001 From: Jan Hoek Date: Wed, 29 Mar 2017 20:47:21 +0200 Subject: [PATCH] Removing temporary scripts --- testnpo.ps1 | 13 ------------- testnporecent.ps1 | 43 ------------------------------------------- testregex.py | 21 --------------------- 3 files changed, 77 deletions(-) delete mode 100644 testnpo.ps1 delete mode 100644 testnporecent.ps1 delete mode 100644 testregex.py diff --git a/testnpo.ps1 b/testnpo.ps1 deleted file mode 100644 index 31a0a660e..000000000 --- a/testnpo.ps1 +++ /dev/null @@ -1,13 +0,0 @@ -Clear-host - -$Urls = @{} -$Urls.Add('keuringsdienst', 'https://www.npo.nl/keuringsdienst-van-waarde/KN_1678993/search?category=broadcasts&page=1') -$Urls.Add('jinek', 'https://www.npo.nl/jinek/KN_1676589/search?media_type=broadcast&start=0&rows=8') -$Urls.Add('midsomer', 'https://www.npo.nl/midsomer-murders/POW_00828660/search?media_type=broadcast&start=0&rows=8') -$Urls.Add('pownews', 'https://www.npo.nl/pownews-flits/POW_03469040/search?category=broadcasts&page=1') - -$Urls.GetEnumerator() | ForEach-Object { - Write-Host $_.Key - - $response = Invoke-WebRequest -Uri ($_.Value) -UseBasicParsing -OutFile "~/Desktop/$($_.Key).txt" -} \ No newline at end of file diff --git a/testnporecent.ps1 b/testnporecent.ps1 deleted file mode 100644 index f95778abd..000000000 --- a/testnporecent.ps1 +++ /dev/null @@ -1,43 +0,0 @@ -Describe 'Flake8' { - It 'Does not return any errors' { - & flake8 /Users/jhoek/GitHub/youtube-dl/youtube_dl/extractor/npo.py | Should BeNullOrEmpty - } -} - -Describe 'Tests' { - It 'Should work in Python 2.6' { - & 'python2.6' '--version' 2>&1 | Should Be 'Python 2.6.9' - - '', '_1', '_2' | ForEach-Object { - & 'python2.6' /Users/jhoek/GitHub/youtube-dl/test/test_download.py "TestDownload.test_NPORecents$($_)" 2>&1 - $LASTEXITCODE | Should Be 0 - } - } - - It 'Should work in Python 2.7' { - & python '--version' 2>&1 | Should Be 'Python 2.7.13' - - '', '_1', '_2' | ForEach-Object { - & python /Users/jhoek/GitHub/youtube-dl/test/test_download.py "TestDownload.test_NPORecents$($_)" 2>&1 - $LASTEXITCODE | Should Be 0 - } - } - - It 'Should work in Python 3.5' { - & python3 '--version' | Should Be 'Python 3.5.2' - - '', '_1', '_2' | ForEach-Object { - & python3 /Users/jhoek/GitHub/youtube-dl/test/test_download.py "TestDownload.test_NPORecents$($_)" 2>&1 - $LASTEXITCODE | Should Be 0 - } - } - - It 'Should work in Python 3.6' { - & python3.6 '--version' | Should Be 'Python 3.6.1' - - '', '_1', '_2' | ForEach-Object { - & 'python3.6' /Users/jhoek/GitHub/youtube-dl/test/test_download.py "TestDownload.test_NPORecents$($_)" 2>&1 - $LASTEXITCODE | Should Be 0 - } - } -} diff --git a/testregex.py b/testregex.py deleted file mode 100644 index 5d90ff876..000000000 --- a/testregex.py +++ /dev/null @@ -1,21 +0,0 @@ -#!/usr/bin/python - -import re - -npo12files = ['./jinek.htm', './midsomer.htm'] -npo3files = ['./keuringsdienst.htm', './pownews.htm'] - -npo12regex = r"""
\s*