"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tests/unit/plugins/v1/test_flutter.py" between
snapcraft-4.5.1.tar.gz and snapcraft-4.5.2.tar.gz

About: Snapcraft is a build and packaging tool that makes it easy to incorporate components from different sources and build technologies or solutions.

test_flutter.py  (snapcraft-4.5.1):test_flutter.py  (snapcraft-4.5.2)
skipping to change at line 80 skipping to change at line 80
assert mock_subprocess_run.mock_calls == [ assert mock_subprocess_run.mock_calls == [
call("yes | flutter version foo", shell=True, check=True, cwd=expected_c wd) call("yes | flutter version foo", shell=True, check=True, cwd=expected_c wd)
] ]
def test_pull_from_subdir(mock_subprocess_run, flutter_plugin): def test_pull_from_subdir(mock_subprocess_run, flutter_plugin):
flutter_plugin.options.source_subdir = "subdir" flutter_plugin.options.source_subdir = "subdir"
flutter_plugin.pull() flutter_plugin.pull()
def test_build(mock_run, flutter_plugin): def test_build(mock_run, flutter_plugin):
# "mock" create the bundle directory and app. # "mock" create the bundle directory and app.
app_path = ( if flutter_plugin.project.deb_arch == "arm64":
pathlib.Path(flutter_plugin.builddir) / "build/linux/release/bundle/my_a bundle_dir = "build/linux/arm64/release/bundle/my_app"
pp" else:
) bundle_dir = "build/linux/x64/release/bundle/my_app"
app_path = pathlib.Path(flutter_plugin.builddir) / bundle_dir
app_path.parent.mkdir(parents=True) app_path.parent.mkdir(parents=True)
app_path.touch() app_path.touch()
# Create the installdir. # Create the installdir.
pathlib.Path(flutter_plugin.installdir).mkdir(parents=True) pathlib.Path(flutter_plugin.installdir).mkdir(parents=True)
flutter_plugin.build() flutter_plugin.build()
assert mock_run.mock_calls == [ assert mock_run.mock_calls == [
call(["flutter", "pub", "get"]), call(["flutter", "pub", "get"]),
 End of changes. 1 change blocks. 
4 lines changed or deleted 6 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)