Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bengotow committed Oct 9, 2023
1 parent d5aab3b commit 83c9154
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -646,6 +646,7 @@ export const LaunchAssetLoaderAssetDailyWeeklyMock: MockedResponse<LaunchAssetLo
{
...ASSET_DAILY,
requiredResources: [],
assetChecks: [],
partitionDefinition: {
name: 'Foo',
type: PartitionDefinitionType.TIME_WINDOW,
Expand All @@ -672,6 +673,7 @@ export const LaunchAssetLoaderAssetDailyWeeklyMock: MockedResponse<LaunchAssetLo
{
...ASSET_WEEKLY,
requiredResources: [],
assetChecks: [],
partitionDefinition: {
name: 'Foo',
type: PartitionDefinitionType.TIME_WINDOW,
Expand Down Expand Up @@ -793,6 +795,7 @@ type LaunchAssetLoaderQueryAssetNode = LaunchAssetLoaderQuery['assetNodes'][0];
const ASSET_DAILY_LOADER_RESULT: LaunchAssetLoaderQueryAssetNode = {
...ASSET_DAILY,
requiredResources: [],
assetChecks: [],
partitionDefinition: {
name: 'Foo',
type: PartitionDefinitionType.TIME_WINDOW,
Expand Down Expand Up @@ -820,6 +823,7 @@ const ASSET_DAILY_LOADER_RESULT: LaunchAssetLoaderQueryAssetNode = {
const ASSET_WEEKLY_LOADER_RESULT: LaunchAssetLoaderQueryAssetNode = {
...ASSET_WEEKLY,
requiredResources: [],
assetChecks: [],
partitionDefinition: {
name: 'Foo',
type: PartitionDefinitionType.TIME_WINDOW,
Expand Down Expand Up @@ -858,6 +862,7 @@ const ASSET_WEEKLY_LOADER_RESULT: LaunchAssetLoaderQueryAssetNode = {
const ASSET_WEEKLY_ROOT_LOADER_RESULT: LaunchAssetLoaderQueryAssetNode = {
...ASSET_WEEKLY_ROOT,
requiredResources: [],
assetChecks: [],
partitionDefinition: {
name: 'Foo',
type: PartitionDefinitionType.TIME_WINDOW,
Expand Down Expand Up @@ -885,6 +890,7 @@ const ASSET_WEEKLY_ROOT_LOADER_RESULT: LaunchAssetLoaderQueryAssetNode = {
const UNPARTITIONED_ASSET_LOADER_RESULT: LaunchAssetLoaderQueryAssetNode = {
...UNPARTITIONED_ASSET,
requiredResources: [],
assetChecks: [],
partitionDefinition: null,
configField: {
name: 'config',
Expand All @@ -905,6 +911,7 @@ const UNPARTITIONED_ASSET_LOADER_RESULT: LaunchAssetLoaderQueryAssetNode = {
const UNPARTITIONED_ASSET_OTHER_REPO_LOADER_RESULT: LaunchAssetLoaderQueryAssetNode = {
...UNPARTITIONED_ASSET_OTHER_REPO,
requiredResources: [],
assetChecks: [],
partitionDefinition: null,
configField: {
name: 'config',
Expand All @@ -926,6 +933,7 @@ const UNPARTITIONED_ASSET_OTHER_REPO_LOADER_RESULT: LaunchAssetLoaderQueryAssetN
const UNPARTITIONED_ASSET_WITH_REQUIRED_CONFIG_LOADER_RESULT: LaunchAssetLoaderQueryAssetNode = {
...UNPARTITIONED_ASSET_WITH_REQUIRED_CONFIG,
requiredResources: [],
assetChecks: [],
partitionDefinition: null,
configField: {
name: 'config',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ describe('LaunchAssetExecutionButton', () => {
repositoryName: 'repo',
pipelineName: 'my_asset_job',
assetSelection: [{path: ['unpartitioned_asset']}],
assetCheckSelection: [],
},
});
renderButton({
Expand Down Expand Up @@ -184,6 +185,7 @@ describe('LaunchAssetExecutionButton', () => {
repositoryName: 'repo',
pipelineName: '__ASSET_JOB_7',
assetSelection: [{path: ['unpartitioned_asset']}],
assetCheckSelection: [],
},
});
renderButton({
Expand Down Expand Up @@ -233,6 +235,7 @@ describe('LaunchAssetExecutionButton', () => {
runConfigData: '{}\n',
selector: {
assetSelection: [{path: ['asset_daily']}],
assetCheckSelection: [],
pipelineName: 'my_asset_job',
repositoryLocationName: 'test.py',
repositoryName: 'repo',
Expand Down Expand Up @@ -293,6 +296,7 @@ describe('LaunchAssetExecutionButton', () => {
runConfigData: '{}\n',
selector: {
assetSelection: [{path: ['asset_daily']}],
assetCheckSelection: [],
pipelineName: '__ASSET_JOB_7',
repositoryLocationName: 'test.py',
repositoryName: 'repo',
Expand Down Expand Up @@ -357,6 +361,7 @@ describe('LaunchAssetExecutionButton', () => {
repositoryName: 'repo',
pipelineName: 'my_asset_job',
assetSelection: [{path: ['asset_daily']}],
assetCheckSelection: [],
},
});
renderButton({
Expand Down Expand Up @@ -390,6 +395,7 @@ describe('LaunchAssetExecutionButton', () => {
repositoryName: 'repo',
pipelineName: 'my_asset_job',
assetSelection: [{path: ['asset_daily']}],
assetCheckSelection: [],
},
});
renderButton({
Expand Down

0 comments on commit 83c9154

Please sign in to comment.