Skip to content

Commit

Permalink
test: Replace + with Plus in test class names
Browse files Browse the repository at this point in the history
  • Loading branch information
scop committed Jul 8, 2018
1 parent 73f05ba commit d1c2c72
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/generate
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ if [[ $cmd == *.* ]]; then
marker=$'\n'"@pytest.mark.bashcomp("$'\n'" cmd=\"$cmd\","$'\n'")"
fi

name=$(python -c "import re,sys;print(re.sub('(^|[_-]+)(.)',lambda m:m.group(2).upper(),sys.argv[1]))" $file)
name=$(python -c "import re,sys;print(re.sub('(^|[_-]+)(.)',lambda m:m.group(2).upper(),sys.argv[1]).replace('+','Plus'))" $file)

cat <<EOF >t/test_$file.py
import pytest
Expand Down
2 changes: 1 addition & 1 deletion test/t/test_c++.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import pytest


class TestC++(object):
class TestCPlusPlus(object):

@pytest.mark.complete("c++ ")
def test_1(self, completion):
Expand Down
2 changes: 1 addition & 1 deletion test/t/test_g++.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import pytest


class TestG++(object):
class TestGPlusPlus(object):

@pytest.mark.complete("g++ ")
def test_1(self, completion):
Expand Down

0 comments on commit d1c2c72

Please sign in to comment.