Skip to content

Commit 6536569

Browse files
authored
feat: add BSD platforms to OS_DIRECTORIES (#228)
* feat: add BSD platforms to OS_DIRECTORIES * test: add BSD platforms
1 parent f5b1dd0 commit 6536569

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

tests/test_tldr.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,9 @@ def test_tldr_language(tldr_language, language, lang, expected, monkeypatch):
108108
("win32", "windows"),
109109
("darwin", "osx"),
110110
("sunos", "sunos"),
111-
("freebsd", "linux"),
111+
("freebsd", "freebsd"),
112+
("openbsd", "openbsd"),
113+
("netbsd", "netbsd"),
112114
("aix", "linux"),
113115
])
114116
def test_get_platform(platform, expected):

tldr.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@
4343
OS_DIRECTORIES = {
4444
"linux": "linux",
4545
"darwin": "osx",
46+
"freebsd": "freebsd",
47+
"openbsd": "openbsd",
48+
"netbsd": "netbsd",
4649
"sunos": "sunos",
4750
"win32": "windows"
4851
}

0 commit comments

Comments
 (0)