Fix test config
This commit is contained in:
parent
a16622e11e
commit
c09d945c0d
|
@ -1,5 +1,5 @@
|
|||
if (-not ([string]::IsNullOrEmpty($env:REDDIT_TOKEN)))
|
||||
{
|
||||
Copy-Item .\\bdfr\\default_config.cfg .\\test_config.cfg
|
||||
Write-Output "`nuser_token = $env:REDDIT_TOKEN" >> ./test_config.cfg
|
||||
Copy-Item .\\bdfr\\default_config.cfg .\\tests\\test_config.cfg
|
||||
Write-Output "`nuser_token = $env:REDDIT_TOKEN" >> ./tests/test_config.cfg
|
||||
}
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
|
||||
if [ -n "$REDDIT_TOKEN" ]
|
||||
then
|
||||
cp ./bdfr/default_config.cfg ./test_config.cfg
|
||||
echo -e "\nuser_token = $REDDIT_TOKEN" >> ./test_config.cfg
|
||||
fi
|
||||
cp ./bdfr/default_config.cfg ./tests/test_config.cfg
|
||||
echo -e "\nuser_token = $REDDIT_TOKEN" >> ./tests/test_config.cfg
|
||||
fi
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
import shutil
|
||||
from pathlib import Path
|
||||
from sys import platform
|
||||
from unittest.mock import MagicMock, patch
|
||||
|
||||
import prawcore
|
||||
|
@ -425,6 +426,7 @@ def test_cli_download_user_reddit_server_error(test_args: list[str], response: i
|
|||
@pytest.mark.online
|
||||
@pytest.mark.reddit
|
||||
@pytest.mark.skipif(not does_test_config_exist, reason="A test config file is required for integration tests")
|
||||
@pytest.mark.skipif(platform == "darwin", reason="Test hangs on macos github")
|
||||
@pytest.mark.parametrize(
|
||||
"test_args",
|
||||
(
|
||||
|
|
Loading…
Reference in a new issue