Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adapt rust tests to test suite refactor #81

Open
wants to merge 1 commit into
base: refactor-pipes-tests
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 4 additions & 39 deletions libraries/pipes/implementations/rust/src/bin/pipes_tests.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
use clap::ArgAction;
use clap::Parser;
use dagster_pipes_rust::{open_dagster_pipes, DagsterPipesError};
use dagster_pipes_rust::{DAGSTER_PIPES_CONTEXT_ENV_VAR, DAGSTER_PIPES_MESSAGES_ENV_VAR};
Expand All @@ -7,56 +6,22 @@ use std::fs::File;

#[derive(Parser)]
struct Cli {
#[arg(long)]
test_name: String,
#[arg(long)]
context: Option<String>,
#[arg(long)]
messages: Option<String>,
#[arg(
long,
action = ArgAction::Set,
default_value_t = false,
default_missing_value = "false",
num_args=0..=1,
require_equals = false,
)]
env: bool,
#[arg(long = "job-name")]
#[arg(long)]
job_name: Option<String>,
#[arg(long)]
extras: Option<String>,
#[arg(
long,
action = ArgAction::Set,
default_value_t = false,
default_missing_value = "false",
num_args=0..=1,
require_equals = false,
)]
full: bool,
#[arg(long)]
custom_payload_path: Option<String>,
custom_payload: Option<String>,
#[arg(long)]
report_asset_check: Option<String>,
#[arg(long)]
report_asset_materialization: Option<String>,
#[arg(
long,
action = ArgAction::Set,
default_value_t = false,
default_missing_value = "false",
num_args=0..=1,
require_equals = false,
)]
throw_error: bool,
#[arg(
long,
action = ArgAction::Set,
default_value_t = false,
default_missing_value = "false",
num_args=0..=1,
require_equals = false,
)]
logging: bool,
#[arg(long)]
message_writer: Option<String>,
#[arg(long)]
Expand Down
Loading