internet-court/internet-court-skill/direct-tests
Trust tier 2
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Write and run fast direct mode tests for GenLayer intelligent contracts.
Install
npx vskill@latest install internet-court/internet-court-skill/direct-testsSKILL.md
The same SKILL.md was published earlier as bg-szy/top-skills/direct-tests.
Direct Mode Tests
Write fast, in-memory tests for intelligent contracts. No server, no Docker — tests run in ~30-50ms.
Running Tests
Fixtures
Available from genlayer-test pytest plugin:
All fixtures: direct_vm, direct_deploy, direct_alice, direct_bob, direct_charlie, direct_owner, direct_accounts
Basic Test Pattern
Mocking Web Requests
For contracts that call gl.nondet.web.get():
Full mock format (when you need headers/method control)
Mocking LLM Responses
For contracts that call gl.nondet.exec_prompt():
Clearing Mocks
VMContext Cheatcodes
Test Organization
What to Test in Direct Mode
| Category | Example | |
|---|---|---|
| State transitions | Create → read back → verify fields | |
| Validation / reverts | Invalid inputs, unauthorized callers | |
| Access control | Owner-only methods, role checks | |
| Edge cases | Empty state, boundary values, overflow | |
| Web/LLM parsing | Mock responses → verify extraction logic |
Common Patterns
Testing access control
Testing state transitions
Reusable mock helpers (conftest.py)
Tips
- Always
direct_vm.sender = ...before calling write methods - Use
--jsonflag ongenvm-lint checkbefore writing tests to understand the contract's interface - Direct mode runs leader function only — validator logic is not exercised. Use integration tests for full consensus validation.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingvendored/genlayer/direct-tests/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/internet-court/internet-court-skill/direct-tests)