-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(shell): Slufigy environment variable names
Close #120
- Loading branch information
Showing
4 changed files
with
42 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
permissions: | ||
specs: | ||
"bin/dependency-check": "+x" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import re | ||
from pathlib import Path | ||
|
||
import pytest | ||
from _pytest.capture import CaptureFixture | ||
from ddb.__main__ import main | ||
|
||
|
||
@pytest.mark.skipif("os.name == 'nt'") | ||
class TestBashShell: | ||
def test_export_special_chars(self, capsys: CaptureFixture, project_loader): | ||
project_loader("export-special-chars") | ||
|
||
main(["configure"]) | ||
|
||
main(["activate"]) | ||
|
||
outerr = capsys.readouterr() | ||
script_lines = Path(outerr.out.split()[1].strip()).read_text().splitlines() | ||
matches = [re.match('export (.+)=.*$', x) for x in script_lines] | ||
matches = [x for x in matches if x] | ||
|
||
for match in matches: | ||
if match: | ||
assert '/' not in match.group(1) |