Skip to content

Commit

Permalink
Merge branch 'master' into dependencies_update_20231113
Browse files Browse the repository at this point in the history
  • Loading branch information
tazmaniax committed Feb 28, 2024
2 parents 613aef1 + 55ca839 commit 1b56237
Show file tree
Hide file tree
Showing 4 changed files with 134 additions and 123 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ jobs:
name: Check / Tests -> JDK-${{ matrix.jdk }}/${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
# we don't know what commit the last tag was it's safer to get entire repo so previousStableVersion resolves
fetch-depth: 0

- name: Set up python 3
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: '3.x'
architecture: 'x64'
Expand All @@ -39,7 +39,7 @@ jobs:
- run: pip install -r python/requirements.txt

- name: Set up JDK ${{ matrix.jdk }}
uses: actions/setup-java@v2
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.jdk }}
distribution: 'adopt'
Expand All @@ -55,19 +55,19 @@ jobs:
name: BUILD ${{ github.sha }}
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
# we don't know what commit the last tag was it's safer to get entire repo so previousStableVersion resolves
fetch-depth: 0

- name: Set up python 3
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: '3.x'
architecture: 'x64'

- name: Set up JDK 17
uses: actions/setup-java@v2
uses: actions/setup-java@v3
with:
java-version: 17
distribution: 'adopt'
Expand All @@ -77,7 +77,7 @@ jobs:
run: ant artifact

- name: ziping artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: play-${{ github.sha }}
if-no-files-found: error
Expand Down
2 changes: 1 addition & 1 deletion framework/pym/play/cmdloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def load_core(self):
if filename != "__init__.py" and filename.endswith(".py"):
try:
module_name = filename.replace(".py", "")
module_path = os.path.join(self.path,filename)
module_path = os.path.join(self.path, filename)
mod = load_python_module(module_name, module_path)
self._load_cmd_from(mod)
except Exception as e:
Expand Down
4 changes: 2 additions & 2 deletions samples-and-tests/i-am-a-developer/test_jvm_version_flag.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def testWithFlag(self, mock):
play_app.java_cmd([])

step('Assert getJavaVersion was not called')
self.assert_(not mock.called)
mock.assert_(not mock.called)

@mock.patch('play.application.getJavaVersion', return_value='')
def testWithoutFlag(self, mock):
Expand All @@ -43,7 +43,7 @@ def testWithoutFlag(self, mock):
play_app.java_cmd([])

step('Assert getJavaVersion was called once')
self.assert_(mock.called)
mock.assert_(mock.called)


if __name__ == '__main__':
Expand Down
Loading

0 comments on commit 1b56237

Please sign in to comment.