code stringlengths 3 6.57k |
|---|
json.loads(package_has_file(output, 'info/link.json') |
decode() |
test_legacy_noarch_python(testing_config) |
api.build(os.path.join(metadata_dir, "_legacy_noarch_python") |
os.path.basename(os.path.dirname(output) |
pytest.mark.skipif(parse_version(conda.__version__) |
parse_version("4.5") |
test_preferred_env(testing_config) |
os.path.join(metadata_dir, "_preferred_env") |
api.build(recipe, config=testing_config) |
json.loads(package_has_file(output, 'info/link.json') |
decode() |
test_skip_compile_pyc(testing_config) |
api.build(os.path.join(metadata_dir, "skip_compile_pyc") |
tarfile.open(outputs[0]) |
tf.getmembers() |
os.path.basename(f.name) |
os.path.splitext(filename) |
filename.split('.', 1) |
format(filename) |
format(filename) |
format(pyc_count) |
test_detect_binary_files_with_prefix(testing_config) |
api.build(os.path.join(metadata_dir, "_detect_binary_files_with_prefix") |
tarfile.open(outputs[0]) |
tf.extractfile('info/has_prefix') |
p.strip() |
decode('utf-8') |
has_prefix.readlines() |
has_prefix.close() |
entry.endswith('binary-has-prefix') |
entry.endswith('"binary-has-prefix"') |
len(matches) |
test_skip_detect_binary_files_with_prefix(testing_config) |
os.path.join(metadata_dir, "_skip_detect_binary_files_with_prefix") |
api.build(recipe, config=testing_config) |
tarfile.open(outputs[0]) |
tf.extractfile('info/has_prefix') |
p.strip() |
decode('utf-8') |
has_prefix.readlines() |
has_prefix.close() |
entry.endswith('binary-has-prefix') |
entry.endswith('"binary-has-prefix"') |
len(matches) |
test_fix_permissions(testing_config) |
os.path.join(metadata_dir, "fix_permissions") |
api.build(recipe, config=testing_config) |
tarfile.open(outputs[0]) |
tf.getmembers() |
invalid (read) |
format(f.name) |
pytest.mark.skipif(not on_win, reason="windows-only functionality") |
test_script_win_creates_exe(testing_config, recipe_name) |
os.path.join(metadata_dir, recipe_name) |
api.build(recipe, config=testing_config) |
package_has_file(outputs[0], 'Scripts/test-script.exe') |
package_has_file(outputs[0], 'Scripts/test-script-script.py') |
test_output_folder_moves_file(testing_metadata, testing_workdir) |
api.build(testing_metadata, no_test=True) |
startswith(testing_workdir) |
test_info_files_json(testing_config) |
api.build(os.path.join(metadata_dir, "ignore_some_prefix_files") |
package_has_file(outputs[0], "info/paths.json") |
tarfile.open(outputs[0]) |
json.loads(tf.extractfile('info/paths.json') |
read() |
decode('utf-8') |
data.keys() |
data.get('paths') |
paths.keys() |
len(data.get('paths') |
data.get('paths') |
file.keys() |
file.get("_path") |
file.get("prefix_placeholder") |
file.get("file_mode") |
file.get("prefix_placeholder") |
file.get("file_mode") |
test_build_expands_wildcards(mocker, testing_workdir) |
mocker.patch("conda_build.build.build_tree") |
api.Config() |
os.makedirs(f) |
open(os.path.join(f, 'meta.yaml') |
fh.write('\n') |
api.build(["a*"], config=config) |
os.path.join(os.getcwd() |
pytest.mark.parametrize('set_build_id', [True, False]) |
test_remove_workdir_default(testing_config, caplog, set_build_id) |
os.path.join(metadata_dir, '_keep_work_dir') |
api.render(recipe, config=testing_config) |
api.build(metadata, set_build_id=set_build_id) |
glob(os.path.join(metadata.config.work_dir, '*') |
test_keep_workdir_and_dirty_reuse(testing_config, capfd) |
os.path.join(metadata_dir, '_keep_work_dir') |
api.render(recipe, config=testing_config, dirty=True, remove_work_dir=False) |
api.build(metadata) |
capfd.readouterr() |
glob(os.path.join(metadata.config.work_dir, '*') |
api.render(recipe, config=testing_config, dirty=True, remove_work_dir=False) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.