Skip to content

Commit 885db32

Browse files
Cleanup
1 parent b003437 commit 885db32

File tree

6 files changed

+7
-62
lines changed

6 files changed

+7
-62
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,7 @@ jobs:
102102
# License file is valid until 2026-11-05
103103
license: ${{ secrets.CONNECT_LICENSE }}
104104
config-file: "script/setup-rsconnect/rstudio-connect.gcfg"
105-
command: |
106-
bash -c 'python script/setup-rsconnect/dump_api_keys.py pins/tests/rsconnect_api_keys.json && pytest pins -m "fs_rsc and not skip_on_github"'
107-
105+
command: pytest pins -m "fs_rsc and not skip_on_github"
108106

109107
test-fork:
110108
name: "Test a fork PR (no secrets)"

Makefile

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,4 @@
11
SPHINX_BUILDARGS=
2-
# Note that these are keys generated by the docker rsconnect service, so are
3-
# not really secrets. They are saved to json to make it easy to use rsconnect
4-
# as multiple users from the tests
5-
RSC_API_KEYS=pins/tests/rsconnect_api_keys.json
6-
7-
dev: pins/tests/rsconnect_api_keys.json
8-
9-
dev-start:
10-
docker compose up -d
11-
docker compose exec -T rsconnect bash < script/setup-rsconnect/add-users.sh
12-
# curl fails with error 52 without a short sleep....
13-
sleep 5
14-
curl -s --retry 10 --retry-connrefused http://localhost:3939
15-
16-
dev-stop:
17-
docker compose down
18-
rm -f $(RSC_API_KEYS)
19-
20-
$(RSC_API_KEYS): dev-start
21-
python script/setup-rsconnect/dump_api_keys.py $@
222

233
README.md:
244
quarto render README.qmd

pins/tests/.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

pins/tests/conftest.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@
3333
]
3434

3535
# rsc should only be used once, because users are created at docker setup time
36-
param_rsc = pytest.param(lambda api_keys: RscBoardBuilder("rsc", api_keys=api_keys), id="rsc", marks=m.fs_rsc)
36+
param_rsc = pytest.param(
37+
lambda api_keys: RscBoardBuilder("rsc", api_keys=api_keys), id="rsc", marks=m.fs_rsc
38+
)
3739

3840
params_backend = [*params_safe, param_rsc]
3941

pins/tests/helpers.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import contextlib
22
import functools
3-
import json
43
import os
54
import shutil
65
import uuid
@@ -211,7 +210,9 @@ def __init__(self, fs_name, path=None, api_keys=None, *args, **kwargs):
211210
def create_tmp_board(self, src_board=None, versioned=True):
212211
from pins.rsconnect.fs import PinBundleManifest # noqa
213212

214-
board = BoardRsConnect("", rsc_fs_from_key("derek", self.api_keys), versioned=versioned)
213+
board = BoardRsConnect(
214+
"", rsc_fs_from_key("derek", self.api_keys), versioned=versioned
215+
)
215216
if src_board is None:
216217
return board
217218

script/setup-rsconnect/dump_api_keys.py

Lines changed: 0 additions & 35 deletions
This file was deleted.

0 commit comments

Comments
 (0)