Skip to content

Commit adc2924

Browse files
committedJan 14, 2022
tests: fix faulty tests
1 parent b329c9d commit adc2924

File tree

15 files changed

+27
-30
lines changed

15 files changed

+27
-30
lines changed
 

‎.github/examples.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const secrets = {
3939
METRICS_BOT_TOKEN:"MOCKED_TOKEN",
4040
PAGESPEED_TOKEN:"MOCKED_TOKEN",
4141
SPOTIFY_TOKENS:"MOCKED_CLIENT_ID, MOCKED_CLIENT_SECRET, MOCKED_REFRESH_TOKEN",
42-
YOUTUBE_MUSIC_TOKEN:"SAPISID=MOCKED_COOKIE; OTHER_PARAM=OTHER_VALUE;",
42+
YOUTUBE_MUSIC_TOKENS:"SAPISID=MOCKED_COOKIE; OTHER_PARAM=OTHER_VALUE;",
4343
LASTFM_TOKEN:"MOCKED_TOKEN",
4444
NIGHTSCOUT_URL:"https://testapp.herokuapp.com/",
4545
WAKATIME_TOKEN:"MOCKED_TOKEN",

‎source/plugins/achievements/examples.yml

+4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
base: ""
77
plugin_achievements: yes
88
plugin_achievements_only: sponsor, maintainer, octonaut
9+
test:
10+
timeout: 1800000
911

1012
- name: Compact display
1113
uses: lowlighter/metrics@latest
@@ -17,3 +19,5 @@
1719
plugin_achievements_only: polyglot, stargazer, sponsor, deployer, member, maintainer, developer, scripter, packager, explorer, infographile, manager
1820
plugin_achievements_display: compact
1921
plugin_achievements_threshold: X
22+
test:
23+
timeout: 1800000

‎source/plugins/music/examples.yml

+2
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
plugin_music: yes
3434
plugin_music_mode: top
3535
plugin_music_provider: spotify
36+
plugin_music_token: ${{ secrets.SPOTIFY_TOKENS }}
3637
plugin_music_time_range: short
3738
plugin_music_top_type: tracks
3839

@@ -43,6 +44,7 @@
4344
plugin_music: yes
4445
plugin_music_mode: top
4546
plugin_music_provider: spotify
47+
plugin_music_token: ${{ secrets.SPOTIFY_TOKENS }}
4648
plugin_music_time_range: long
4749
plugin_music_top_type: artists
4850

‎source/plugins/nightscout/examples.yml

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
- uses: lowlighter/metrics@latest
22
with:
3+
token: ${{ secrets.METRICS_TOKEN }}
34
plugin_nightscout: yes
45
plugin_nightscout_url: ${{ secrets.NIGHTSCOUT_URL }}
56
prod:

‎source/plugins/poopmap/examples.yml

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
- uses: lowlighter/metrics@latest
22
with:
3+
token: ${{ secrets.METRICS_TOKEN }}
34
plugin_poopmap: yes
45
prod:
56
skip: true

‎source/plugins/reactions/examples.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
- name: 🎭 Comment reactions
1+
- name: Comment reactions
22
uses: lowlighter/metrics@latest
33
with:
44
filename: metrics.plugin.reactions.svg

‎source/plugins/wakatime/examples.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
- name: WakaTime
1+
- name: WakaTime
22
uses: lowlighter/metrics@latest
33
with:
44
filename: metrics.plugin.wakatime.svg

‎tests/plugins/achievements.yml

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
token: MOCKED_TOKEN
55
plugin_achievements: 'yes'
66
plugin_achievements_only: sponsor, maintainer, octonaut
7+
timeout: 1800000
78
- name: 🏆 Achievements - Compact display
89
uses: lowlighter/metrics@latest
910
with:
@@ -14,3 +15,4 @@
1415
scripter, packager, explorer, infographile, manager
1516
plugin_achievements_display: compact
1617
plugin_achievements_threshold: X
18+
timeout: 1800000

‎tests/plugins/core.yml

+7-13
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
- name: 🧱 Core - 📗 Classic template
1+
- name: 🧱 Core - Classic template
22
uses: lowlighter/metrics@latest
33
with:
44
token: MOCKED_TOKEN
55
base: header, repositories
66
plugin_lines: 'yes'
7-
- name: 🧱 Core - 📘 Repository template
7+
- name: 🧱 Core - Repository template
88
uses: lowlighter/metrics@latest
99
with:
1010
template: repository
@@ -15,20 +15,20 @@
1515
plugin_followup: 'yes'
1616
plugin_projects: 'yes'
1717
plugin_projects_repositories: lowlighter/metrics/projects/1
18-
- name: 🧱 Core - 📙 Terminal template
18+
- name: 🧱 Core - Terminal template
1919
uses: lowlighter/metrics@latest
2020
with:
2121
template: terminal
2222
token: MOCKED_TOKEN
2323
base: header, metadata
24-
- name: 🧱 Core - 📒 Markdown template
24+
- name: 🧱 Core - Markdown template
2525
uses: lowlighter/metrics@latest
2626
with:
2727
template: markdown
2828
markdown: metrics.markdown.template.md
2929
config_output: markdown
3030
token: MOCKED_TOKEN
31-
- name: 🧱 Core - 📒 Markdown template (with plugins)
31+
- name: 🧱 Core - Markdown template (with plugins)
3232
uses: lowlighter/metrics@latest
3333
with:
3434
template: markdown
@@ -57,7 +57,7 @@
5757
plugin_isocalendar: 'yes'
5858
plugin_languages: 'yes'
5959
token: MOCKED_TOKEN
60-
- name: 🧱 Core - 📒 Markdown template (pdf output)
60+
- name: 🧱 Core - Markdown template (pdf output)
6161
uses: lowlighter/metrics@latest
6262
with:
6363
template: markdown
@@ -71,20 +71,14 @@
7171
config_twemoji: 'yes'
7272
config_padding: 5%
7373
token: MOCKED_TOKEN
74-
- name: 🧱 Core - 📕 Community templates
74+
- name: 🧱 Core - Community templates
7575
uses: lowlighter/metrics@latest
7676
with:
7777
token: MOCKED_TOKEN
7878
template: '@classic'
7979
setup_community_templates: lowlighter/metrics@master:classic
8080
modes:
8181
- action
82-
- name: 🧱 Core - Plugin error example
83-
uses: lowlighter/metrics@latest
84-
with:
85-
token: MOCKED_TOKEN
86-
plugin_projects: 'yes'
87-
skip: true
8882
- name: 🧱 Core - Organization
8983
uses: lowlighter/metrics@latest
9084
with:

‎tests/plugins/licenses.yml

-11
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,3 @@
88
timeout: 1800000
99
modes:
1010
- action
11-
- name: 📜 Repository licenses - Licenses with open-source ratio graphs
12-
uses: lowlighter/metrics@latest
13-
with:
14-
token: MOCKED_TOKEN
15-
template: repository
16-
repo: metrics
17-
plugin_licenses: 'yes'
18-
plugin_licenses_setup: npm ci
19-
plugin_licenses_legal: 'no'
20-
plugin_licenses_ratio: 'yes'
21-
skip: true

‎tests/plugins/music.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
plugin_music: 'yes'
2828
plugin_music_mode: top
2929
plugin_music_provider: spotify
30+
plugin_music_token: MOCKED_CLIENT_ID, MOCKED_CLIENT_SECRET, MOCKED_REFRESH_TOKEN
3031
plugin_music_time_range: short
3132
plugin_music_top_type: tracks
3233
- name: 🎼 Music plugin - Spotify - Top artists
@@ -36,6 +37,7 @@
3637
plugin_music: 'yes'
3738
plugin_music_mode: top
3839
plugin_music_provider: spotify
40+
plugin_music_token: MOCKED_CLIENT_ID, MOCKED_CLIENT_SECRET, MOCKED_REFRESH_TOKEN
3941
plugin_music_time_range: long
4042
plugin_music_top_type: artists
4143
- name: 🎼 Music plugin - Youtube Music - Random track from playlist
@@ -49,7 +51,7 @@
4951
uses: lowlighter/metrics@latest
5052
with:
5153
token: NOT_NEEDED
52-
plugin_music_token: undefined
54+
plugin_music_token: SAPISID=MOCKED_COOKIE; OTHER_PARAM=OTHER_VALUE;
5355
plugin_music: 'yes'
5456
plugin_music_mode: recent
5557
plugin_music_provider: youtube

‎tests/plugins/nightscout.yml

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
- name: '💉 Nightscout - '
22
uses: lowlighter/metrics@latest
33
with:
4+
token: MOCKED_TOKEN
45
plugin_nightscout: 'yes'
56
plugin_nightscout_url: https://testapp.herokuapp.com/

‎tests/plugins/poopmap.yml

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
- name: '💩 PoopMap plugin - '
22
uses: lowlighter/metrics@latest
33
with:
4+
token: MOCKED_TOKEN
45
plugin_poopmap: 'yes'

‎tests/plugins/reactions.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
- name: 🎭 Comment reactions - 🎭 Comment reactions
1+
- name: 🎭 Comment reactions - Comment reactions
22
uses: lowlighter/metrics@latest
33
with:
44
token: MOCKED_TOKEN

‎tests/plugins/wakatime.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
- name: ⏰ WakaTime plugin - WakaTime
1+
- name: ⏰ WakaTime plugin - WakaTime
22
uses: lowlighter/metrics@latest
33
with:
44
token: NOT_NEEDED

0 commit comments

Comments
 (0)
Failed to load comments.