podojo-cli 0.3.0__tar.gz → 0.3.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {podojo_cli-0.3.0 → podojo_cli-0.3.1}/.github/workflows/publish.yml +2 -0
- podojo_cli-0.3.1/CHANGELOG.md +49 -0
- {podojo_cli-0.3.0 → podojo_cli-0.3.1}/PKG-INFO +1 -1
- {podojo_cli-0.3.0 → podojo_cli-0.3.1}/pyproject.toml +1 -1
- {podojo_cli-0.3.0 → podojo_cli-0.3.1}/src/podojo_cli/commands/usertests.py +12 -6
- {podojo_cli-0.3.0 → podojo_cli-0.3.1}/tests/test_usertests.py +7 -2
- {podojo_cli-0.3.0 → podojo_cli-0.3.1}/uv.lock +1 -1
- {podojo_cli-0.3.0 → podojo_cli-0.3.1}/.gitignore +0 -0
- {podojo_cli-0.3.0 → podojo_cli-0.3.1}/CLAUDE.md +0 -0
- {podojo_cli-0.3.0 → podojo_cli-0.3.1}/README.md +0 -0
- {podojo_cli-0.3.0 → podojo_cli-0.3.1}/src/podojo_cli/__init__.py +0 -0
- {podojo_cli-0.3.0 → podojo_cli-0.3.1}/src/podojo_cli/client.py +0 -0
- {podojo_cli-0.3.0 → podojo_cli-0.3.1}/src/podojo_cli/commands/__init__.py +0 -0
- {podojo_cli-0.3.0 → podojo_cli-0.3.1}/src/podojo_cli/commands/auth.py +0 -0
- {podojo_cli-0.3.0 → podojo_cli-0.3.1}/src/podojo_cli/commands/gdrive.py +0 -0
- {podojo_cli-0.3.0 → podojo_cli-0.3.1}/src/podojo_cli/commands/projects.py +0 -0
- {podojo_cli-0.3.0 → podojo_cli-0.3.1}/src/podojo_cli/commands/showreel.py +0 -0
- {podojo_cli-0.3.0 → podojo_cli-0.3.1}/src/podojo_cli/commands/transcripts.py +0 -0
- {podojo_cli-0.3.0 → podojo_cli-0.3.1}/src/podojo_cli/commands/videos.py +0 -0
- {podojo_cli-0.3.0 → podojo_cli-0.3.1}/src/podojo_cli/config.py +0 -0
- {podojo_cli-0.3.0 → podojo_cli-0.3.1}/src/podojo_cli/gdrive/__init__.py +0 -0
- {podojo_cli-0.3.0 → podojo_cli-0.3.1}/src/podojo_cli/gdrive/list.py +0 -0
- {podojo_cli-0.3.0 → podojo_cli-0.3.1}/src/podojo_cli/gdrive/upload.py +0 -0
- {podojo_cli-0.3.0 → podojo_cli-0.3.1}/src/podojo_cli/main.py +0 -0
- {podojo_cli-0.3.0 → podojo_cli-0.3.1}/src/podojo_cli/video/__init__.py +0 -0
- {podojo_cli-0.3.0 → podojo_cli-0.3.1}/src/podojo_cli/video/showreel.py +0 -0
- {podojo_cli-0.3.0 → podojo_cli-0.3.1}/tests/conftest.py +0 -0
- {podojo_cli-0.3.0 → podojo_cli-0.3.1}/tests/test_auth.py +0 -0
- {podojo_cli-0.3.0 → podojo_cli-0.3.1}/tests/test_gdrive.py +0 -0
- {podojo_cli-0.3.0 → podojo_cli-0.3.1}/tests/test_projects.py +0 -0
- {podojo_cli-0.3.0 → podojo_cli-0.3.1}/tests/test_showreel.py +0 -0
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to the Podojo CLI will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com),
|
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org).
|
|
7
|
+
|
|
8
|
+
## [0.3.1] - 2026-04-04
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
- Auto-publish to PyPI on push to main
|
|
12
|
+
- CHANGELOG.md for tracking version history
|
|
13
|
+
|
|
14
|
+
## [0.3.0] - 2026-04-01
|
|
15
|
+
|
|
16
|
+
### Changed
|
|
17
|
+
- Renamed `sessions` command to `usertests` (breaking change)
|
|
18
|
+
- Removed `client` field from usertest commands
|
|
19
|
+
|
|
20
|
+
### Added
|
|
21
|
+
- Show preview and live URLs after `usertest create` and `usertest get`
|
|
22
|
+
|
|
23
|
+
## [0.2.1] - 2026-03-28
|
|
24
|
+
|
|
25
|
+
### Changed
|
|
26
|
+
- Default `project_name` to session ID on session creation
|
|
27
|
+
|
|
28
|
+
### Fixed
|
|
29
|
+
- Test mocks to match actual API response shape
|
|
30
|
+
|
|
31
|
+
## [0.2.0] - 2026-03-25
|
|
32
|
+
|
|
33
|
+
### Added
|
|
34
|
+
- `sessions` command for unmoderated test management
|
|
35
|
+
- Live status column in sessions list
|
|
36
|
+
|
|
37
|
+
### Fixed
|
|
38
|
+
- Publish workflow permissions for checkout
|
|
39
|
+
- Projects list iterating over paginated response dict
|
|
40
|
+
|
|
41
|
+
## [0.1.0] - 2026-03-20
|
|
42
|
+
|
|
43
|
+
### Added
|
|
44
|
+
- Initial CLI with Typer, httpx, and Rich
|
|
45
|
+
- `auth login/logout` commands with API key validation
|
|
46
|
+
- `showreel` command with video download
|
|
47
|
+
- `gdrive` upload and list commands
|
|
48
|
+
- `projects` list command
|
|
49
|
+
- PyPI publishing workflow
|
|
@@ -11,7 +11,7 @@ from ..client import PodojoClient
|
|
|
11
11
|
app = typer.Typer(help="Manage unmoderated user tests")
|
|
12
12
|
console = Console()
|
|
13
13
|
|
|
14
|
-
REQUIRED_FIELDS = ["usertest_id", "
|
|
14
|
+
REQUIRED_FIELDS = ["usertest_id", "title", "logo", "prototype_url", "steps"]
|
|
15
15
|
VALID_STEP_TYPES = {"screen", "prototype"}
|
|
16
16
|
VALID_STEP_VARIANTS = {"question", "task"}
|
|
17
17
|
REQUIRED_STEP_FIELDS = ["type", "title"]
|
|
@@ -19,11 +19,10 @@ REQUIRED_STEP_FIELDS = ["type", "title"]
|
|
|
19
19
|
EXAMPLE_YAML = """\
|
|
20
20
|
# Podojo Unmoderated User Test Configuration
|
|
21
21
|
#
|
|
22
|
-
# Required fields: usertest_id,
|
|
22
|
+
# Required fields: usertest_id, title, logo, prototype_url, steps
|
|
23
23
|
# Optional fields: welcome_text, privacy_text, promo_code, promo_code_info, project_name
|
|
24
24
|
|
|
25
25
|
usertest_id: checkout-usability-v1
|
|
26
|
-
client: Acme Corp
|
|
27
26
|
title: Checkout Flow Usability Test
|
|
28
27
|
logo: https://example.com/logo.png
|
|
29
28
|
prototype_url: https://figma.com/proto/abc123
|
|
@@ -174,7 +173,6 @@ def list_usertests(
|
|
|
174
173
|
table = Table(title="User Tests")
|
|
175
174
|
table.add_column("User Test ID")
|
|
176
175
|
table.add_column("Title")
|
|
177
|
-
table.add_column("Client")
|
|
178
176
|
table.add_column("Steps", justify="right")
|
|
179
177
|
table.add_column("Live")
|
|
180
178
|
table.add_column("Last Updated")
|
|
@@ -184,7 +182,6 @@ def list_usertests(
|
|
|
184
182
|
table.add_row(
|
|
185
183
|
s.get("usertest_id", ""),
|
|
186
184
|
s.get("title", ""),
|
|
187
|
-
s.get("client", ""),
|
|
188
185
|
str(s.get("step_count", "")),
|
|
189
186
|
live,
|
|
190
187
|
s.get("last_updated", ""),
|
|
@@ -209,10 +206,14 @@ def get_usertest(
|
|
|
209
206
|
raise typer.Exit(1)
|
|
210
207
|
|
|
211
208
|
# Remove server-managed fields for a clean editable output
|
|
209
|
+
group = usertest.pop("group", "")
|
|
212
210
|
for key in ("id", "created_at", "created_by", "last_updated"):
|
|
213
211
|
usertest.pop(key, None)
|
|
214
212
|
|
|
215
213
|
console.print(yaml.dump(usertest, default_flow_style=False, sort_keys=False, allow_unicode=True))
|
|
214
|
+
if group:
|
|
215
|
+
console.print(f"Preview: https://usertests.podojo.com/preview/{group}/{usertest_id}")
|
|
216
|
+
console.print(f"Live: https://usertests.podojo.com/{group}?test={usertest_id}")
|
|
216
217
|
|
|
217
218
|
|
|
218
219
|
@app.command("create")
|
|
@@ -242,7 +243,12 @@ def create_usertest(
|
|
|
242
243
|
console.print(f"[red]Error:[/red] {_format_api_error(e)}")
|
|
243
244
|
raise typer.Exit(1)
|
|
244
245
|
|
|
245
|
-
|
|
246
|
+
usertest_id = result.get("usertest_id", "")
|
|
247
|
+
group = result.get("group", "")
|
|
248
|
+
console.print(f"[green]Created user test:[/green] {usertest_id}")
|
|
249
|
+
if group:
|
|
250
|
+
console.print(f" Preview: https://usertests.podojo.com/preview/{group}/{usertest_id}")
|
|
251
|
+
console.print(f" Live: https://usertests.podojo.com/{group}?test={usertest_id}")
|
|
246
252
|
|
|
247
253
|
|
|
248
254
|
@app.command("update")
|
|
@@ -46,6 +46,7 @@ GET_RESPONSE = {
|
|
|
46
46
|
"logo": "https://example.com/logo.png",
|
|
47
47
|
"prototype_url": "https://example.com/proto",
|
|
48
48
|
"steps": [{"type": "screen", "variant": "question", "title": "Q1"}],
|
|
49
|
+
"group": "test-group",
|
|
49
50
|
"created_at": "2026-03-01T12:00:00",
|
|
50
51
|
"created_by": "user@example.com",
|
|
51
52
|
"last_updated": "2026-03-01T12:00:00",
|
|
@@ -63,7 +64,6 @@ def test_list_usertests(runner, httpx_mock):
|
|
|
63
64
|
assert result.exit_code == 0
|
|
64
65
|
assert "User Test One" in result.output
|
|
65
66
|
assert "User Test Two" in result.output
|
|
66
|
-
assert "Acme" in result.output
|
|
67
67
|
|
|
68
68
|
|
|
69
69
|
def test_list_usertests_empty(runner, httpx_mock):
|
|
@@ -92,6 +92,9 @@ def test_get_usertest(runner, httpx_mock):
|
|
|
92
92
|
# Server-managed fields should be stripped
|
|
93
93
|
assert "created_at" not in result.output
|
|
94
94
|
assert "created_by" not in result.output
|
|
95
|
+
# URLs should be displayed
|
|
96
|
+
assert "https://usertests.podojo.com/preview/test-group/ut-1" in result.output
|
|
97
|
+
assert "https://usertests.podojo.com/test-group?test=ut-1" in result.output
|
|
95
98
|
|
|
96
99
|
|
|
97
100
|
def test_get_usertest_not_found(runner, httpx_mock):
|
|
@@ -114,13 +117,15 @@ def test_create_usertest(runner, httpx_mock, tmp_path):
|
|
|
114
117
|
httpx_mock.add_response(
|
|
115
118
|
url="http://test.local/api/v1/usertests",
|
|
116
119
|
method="POST",
|
|
117
|
-
json={"usertest_id": "test-usertest-1", "id": "abc123"},
|
|
120
|
+
json={"usertest_id": "test-usertest-1", "id": "abc123", "group": "test-group"},
|
|
118
121
|
)
|
|
119
122
|
|
|
120
123
|
result = runner.invoke(app, ["usertests", "create", "-f", str(yaml_file)])
|
|
121
124
|
|
|
122
125
|
assert result.exit_code == 0
|
|
123
126
|
assert "test-usertest-1" in result.output
|
|
127
|
+
assert "https://usertests.podojo.com/preview/test-group/test-usertest-1" in result.output
|
|
128
|
+
assert "https://usertests.podojo.com/test-group?test=test-usertest-1" in result.output
|
|
124
129
|
|
|
125
130
|
|
|
126
131
|
def test_create_usertest_file_not_found(runner):
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|