Skip to content

Commit

Permalink
u
Browse files Browse the repository at this point in the history
  • Loading branch information
kojix2 committed Jan 29, 2025
1 parent a22e163 commit 028fa74
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/test_with_deepl_mock.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
run: shards install --without-development

- name: Run tests
run: crystal spec
run: crystal spec -Ddeepl_mock
env:
DEEPL_SERVER_URL: http://localhost:3000
HTTP_PROXY: http://localhost:3001
3 changes: 3 additions & 0 deletions spec/spec_helper.cr
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
require "spec"
{% if flag?(:deepl_mock) %}
STDERR.puts " Using mock for DeepL API ".colorize.back(:magenta)
require "./crest_extension_for_mock"
{% end %}
require "../src/deepl"

0 comments on commit 028fa74

Please sign in to comment.