Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Update unit tests to work with the new setup #57

Open
Labels
TestingThis topic is regarding testing the softwarebugSomething isn't working
@JesperBrink

Description

@JesperBrink

We have changed a lot of the way that we work with the code, but we havn't updated our unit tests to match that. When running our unit tests the following tests fails:

======================================================================ERROR: test_add_requirement (test.test_recipe.TestRecipeClass)----------------------------------------------------------------------Traceback (most recent call last):  File "/Users/jesperbrink/Desktop/work/bioconda_recipe_gen/test/test_recipe.py", line 64, in test_add_requirement    recipe = Recipe("test/files_for_testing/kallisto_recipe_with_hdf5.txt")TypeError: __init__() missing 1 required positional argument: 'version'======================================================================ERROR: test_initialization_method (test.test_recipe.TestRecipeClass)----------------------------------------------------------------------Traceback (most recent call last):  File "/Users/jesperbrink/Desktop/work/bioconda_recipe_gen/test/test_recipe.py", line 35, in test_initialization_method    recipe = Recipe("test/files_for_testing/full_kallisto_recipe.yaml")TypeError: __init__() missing 1 required positional argument: 'version'======================================================================ERROR: test_write_recipe_to_meta_file (test.test_recipe.TestRecipeClass)----------------------------------------------------------------------Traceback (most recent call last):  File "/Users/jesperbrink/Desktop/work/bioconda_recipe_gen/test/test_recipe.py", line 46, in test_write_recipe_to_meta_file    recipe = Recipe(temp_file_path)TypeError: __init__() missing 1 required positional argument: 'version'======================================================================ERROR: test_exit_codes_is_success_for_kallisto (test.test_build.TestMiniIterativeBuild)----------------------------------------------------------------------Traceback (most recent call last):  File "/Users/jesperbrink/Desktop/work/bioconda_recipe_gen/test/test_build.py", line 40, in test_exit_codes_is_success_for_kallisto    proc = build.mini_iterative_build()TypeError: mini_iterative_build() missing 1 required positional argument: 'recipe'----------------------------------------------------------------------

It could be nice to have these tests updated, such that the unit tests doesn't crash because of incorrect use of functions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    TestingThis topic is regarding testing the softwarebugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp