Skip to content

Commit

Permalink
#1457 fix(i-am-a-developer): fix test_jvm_version_flag
Browse files Browse the repository at this point in the history
  • Loading branch information
xael-fry committed Feb 11, 2024
1 parent eb3670c commit 19fa7db
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions framework/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -268,11 +268,11 @@

<!--exec executable="${pythonExecutable}" failonerror="true">
<arg value="${basedir}/../samples-and-tests/i-am-a-developer/tests.py" />
</exec>
</exec-->

<exec executable="${pythonExecutable}" failonerror="true">
<arg value="${basedir}/../samples-and-tests/i-am-a-developer/test_jvm_version_flag.py" />
</exec-->
</exec>

<echo message="Using ${basedir}/../play${playExtension}" />

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

0 comments on commit 19fa7db

Please sign in to comment.