Skip to content

Fix broken tests#249

Merged
frederikfabriciusbjerre merged 2 commits intofrederikfabriciusbjerre:mainfrom
BjarkeHautop:fix-tests
Mar 10, 2026
Merged

Fix broken tests#249
frederikfabriciusbjerre merged 2 commits intofrederikfabriciusbjerre:mainfrom
BjarkeHautop:fix-tests

Conversation

@BjarkeHautop
Copy link
Copy Markdown
Collaborator

@BjarkeHautop BjarkeHautop commented Mar 10, 2026

Removes the test that expects an error "there is no package called", since I can't make that trigger (and it's not from our codebase)? When I run as_caugi(obj_tidy) I get this:

> as_caugi(obj_tidy, class = "DAG")
Error in UseMethod("as.igraph") : 
  no applicable method for 'as.igraph' applied to an object of class "tidygraph"
Called from: tidygraph::as.igraph(x)

Mocked the console width in the print with truncation test, so it works even if the user has a large console size (like me). Hence, I added withr as a suggested dependency to do this.

Closes #242.

@frederikfabriciusbjerre frederikfabriciusbjerre merged commit 24fde0b into frederikfabriciusbjerre:main Mar 10, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tests failing locally

2 participants