def METHOD_NAME(monkeypatch):
    class Options:
        crystal_channel = "latest/stable"
        crystal_build_options = [
            "--release",
            "--static",
            "--link-flags=-s -wl,-z,relro,-z,now",
        ]
    monkeypatch.setattr(sys, "path", ["", "/test"])
    monkeypatch.setattr(sys, "executable", "/test/python3")
    monkeypatch.setattr(crystal, "__file__", "/test/crystal.py")
    monkeypatch.setattr(os, "environ", dict())
    plugin = CrystalPlugin(part_name="my-part", options=Options())
    assert plugin.get_build_commands() == [
        "shards build --without-development --release --static '--link-flags=-s -wl,-z,relro,-z,now'",
        'cp -r ./bin "${SNAPCRAFT_PART_INSTALL}"/bin',
        "env -i LANG=C.UTF-8 LC_ALL=C.UTF-8 /test/python3 -I /test/crystal.py "
        'stage-runtime-dependencies --part-src "${SNAPCRAFT_PART_SRC}" --part-install '
        '"${SNAPCRAFT_PART_INSTALL}" --part-build "${SNAPCRAFT_PART_BUILD}" '
        '--arch-triplet "${SNAPCRAFT_ARCH_TRIPLET}" --content-dirs '
        '"${SNAPCRAFT_CONTENT_DIRS}"',
    ]