better name for test case

This commit is contained in:
Shreyas Goenka 2024-10-21 21:53:41 +02:00
parent 4bce4f1d05
commit 6ad24b5459
No known key found for this signature in database
GPG Key ID: 92A07DF49CCB0622
1 changed files with 12 additions and 12 deletions

View File

@ -37,7 +37,7 @@ func TestFilerWorkspaceFilesExtensionsErrorsOnDupName(t *testing.T) {
expectedError string expectedError string
}{ }{
{ {
name: "python source notebook and file", name: "python source notebook and file with source extension",
language: workspace.LanguagePython, language: workspace.LanguagePython,
notebookExportFormat: workspace.ExportFormatSource, notebookExportFormat: workspace.ExportFormatSource,
notebookPath: "/dir/foo", notebookPath: "/dir/foo",
@ -45,7 +45,7 @@ func TestFilerWorkspaceFilesExtensionsErrorsOnDupName(t *testing.T) {
expectedError: "failed to read files from the workspace file system. Duplicate paths encountered. Both NOTEBOOK at /dir/foo and FILE at /dir/foo.py resolve to the same name /foo.py. Changing the name of one of these objects will resolve this issue", expectedError: "failed to read files from the workspace file system. Duplicate paths encountered. Both NOTEBOOK at /dir/foo and FILE at /dir/foo.py resolve to the same name /foo.py. Changing the name of one of these objects will resolve this issue",
}, },
{ {
name: "scala source notebook and file", name: "scala source notebook and file with source extension",
language: workspace.LanguageScala, language: workspace.LanguageScala,
notebookExportFormat: workspace.ExportFormatSource, notebookExportFormat: workspace.ExportFormatSource,
notebookPath: "/dir/foo", notebookPath: "/dir/foo",
@ -53,7 +53,7 @@ func TestFilerWorkspaceFilesExtensionsErrorsOnDupName(t *testing.T) {
expectedError: "failed to read files from the workspace file system. Duplicate paths encountered. Both NOTEBOOK at /dir/foo and FILE at /dir/foo.scala resolve to the same name /foo.scala. Changing the name of one of these objects will resolve this issue", expectedError: "failed to read files from the workspace file system. Duplicate paths encountered. Both NOTEBOOK at /dir/foo and FILE at /dir/foo.scala resolve to the same name /foo.scala. Changing the name of one of these objects will resolve this issue",
}, },
{ {
name: "r source notebook and file", name: "r source notebook and file with source extension",
language: workspace.LanguageR, language: workspace.LanguageR,
notebookExportFormat: workspace.ExportFormatSource, notebookExportFormat: workspace.ExportFormatSource,
notebookPath: "/dir/foo", notebookPath: "/dir/foo",
@ -61,7 +61,7 @@ func TestFilerWorkspaceFilesExtensionsErrorsOnDupName(t *testing.T) {
expectedError: "failed to read files from the workspace file system. Duplicate paths encountered. Both NOTEBOOK at /dir/foo and FILE at /dir/foo.r resolve to the same name /foo.r. Changing the name of one of these objects will resolve this issue", expectedError: "failed to read files from the workspace file system. Duplicate paths encountered. Both NOTEBOOK at /dir/foo and FILE at /dir/foo.r resolve to the same name /foo.r. Changing the name of one of these objects will resolve this issue",
}, },
{ {
name: "sql source notebook and file", name: "sql source notebook and file with source extension",
language: workspace.LanguageSql, language: workspace.LanguageSql,
notebookExportFormat: workspace.ExportFormatSource, notebookExportFormat: workspace.ExportFormatSource,
notebookPath: "/dir/foo", notebookPath: "/dir/foo",
@ -69,7 +69,7 @@ func TestFilerWorkspaceFilesExtensionsErrorsOnDupName(t *testing.T) {
expectedError: "failed to read files from the workspace file system. Duplicate paths encountered. Both NOTEBOOK at /dir/foo and FILE at /dir/foo.sql resolve to the same name /foo.sql. Changing the name of one of these objects will resolve this issue", expectedError: "failed to read files from the workspace file system. Duplicate paths encountered. Both NOTEBOOK at /dir/foo and FILE at /dir/foo.sql resolve to the same name /foo.sql. Changing the name of one of these objects will resolve this issue",
}, },
{ {
name: "python jupyter notebook and file", name: "python jupyter notebook and file with source extension",
language: workspace.LanguagePython, language: workspace.LanguagePython,
notebookExportFormat: workspace.ExportFormatJupyter, notebookExportFormat: workspace.ExportFormatJupyter,
notebookPath: "/dir/foo", notebookPath: "/dir/foo",
@ -78,7 +78,7 @@ func TestFilerWorkspaceFilesExtensionsErrorsOnDupName(t *testing.T) {
expectedError: "", expectedError: "",
}, },
{ {
name: "scala jupyter notebook and file", name: "scala jupyter notebook and file with source extension",
language: workspace.LanguageScala, language: workspace.LanguageScala,
notebookExportFormat: workspace.ExportFormatJupyter, notebookExportFormat: workspace.ExportFormatJupyter,
notebookPath: "/dir/foo", notebookPath: "/dir/foo",
@ -87,7 +87,7 @@ func TestFilerWorkspaceFilesExtensionsErrorsOnDupName(t *testing.T) {
expectedError: "", expectedError: "",
}, },
{ {
name: "sql jupyter notebook and file", name: "sql jupyter notebook and file with source extension",
language: workspace.LanguageSql, language: workspace.LanguageSql,
notebookExportFormat: workspace.ExportFormatJupyter, notebookExportFormat: workspace.ExportFormatJupyter,
notebookPath: "/dir/foo", notebookPath: "/dir/foo",
@ -96,7 +96,7 @@ func TestFilerWorkspaceFilesExtensionsErrorsOnDupName(t *testing.T) {
expectedError: "", expectedError: "",
}, },
{ {
name: "r jupyter notebook and file", name: "r jupyter notebook and file with source extension",
language: workspace.LanguageR, language: workspace.LanguageR,
notebookExportFormat: workspace.ExportFormatJupyter, notebookExportFormat: workspace.ExportFormatJupyter,
notebookPath: "/dir/foo", notebookPath: "/dir/foo",
@ -105,7 +105,7 @@ func TestFilerWorkspaceFilesExtensionsErrorsOnDupName(t *testing.T) {
expectedError: "", expectedError: "",
}, },
{ {
name: "python jupyter notebook and file", name: "python jupyter notebook and file with .ipynb extension",
language: workspace.LanguagePython, language: workspace.LanguagePython,
notebookExportFormat: workspace.ExportFormatJupyter, notebookExportFormat: workspace.ExportFormatJupyter,
notebookPath: "/dir/foo", notebookPath: "/dir/foo",
@ -113,7 +113,7 @@ func TestFilerWorkspaceFilesExtensionsErrorsOnDupName(t *testing.T) {
expectedError: "failed to read files from the workspace file system. Duplicate paths encountered. Both NOTEBOOK at /dir/foo and FILE at /dir/foo.ipynb resolve to the same name /foo.ipynb. Changing the name of one of these objects will resolve this issue", expectedError: "failed to read files from the workspace file system. Duplicate paths encountered. Both NOTEBOOK at /dir/foo and FILE at /dir/foo.ipynb resolve to the same name /foo.ipynb. Changing the name of one of these objects will resolve this issue",
}, },
{ {
name: "scala jupyter notebook and file", name: "scala jupyter notebook and file with .ipynb extension",
language: workspace.LanguageScala, language: workspace.LanguageScala,
notebookExportFormat: workspace.ExportFormatJupyter, notebookExportFormat: workspace.ExportFormatJupyter,
notebookPath: "/dir/foo", notebookPath: "/dir/foo",
@ -121,7 +121,7 @@ func TestFilerWorkspaceFilesExtensionsErrorsOnDupName(t *testing.T) {
expectedError: "failed to read files from the workspace file system. Duplicate paths encountered. Both NOTEBOOK at /dir/foo and FILE at /dir/foo.ipynb resolve to the same name /foo.ipynb. Changing the name of one of these objects will resolve this issue", expectedError: "failed to read files from the workspace file system. Duplicate paths encountered. Both NOTEBOOK at /dir/foo and FILE at /dir/foo.ipynb resolve to the same name /foo.ipynb. Changing the name of one of these objects will resolve this issue",
}, },
{ {
name: "r jupyter notebook and file", name: "r jupyter notebook and file with .ipynb extension",
language: workspace.LanguageR, language: workspace.LanguageR,
notebookExportFormat: workspace.ExportFormatJupyter, notebookExportFormat: workspace.ExportFormatJupyter,
notebookPath: "/dir/foo", notebookPath: "/dir/foo",
@ -129,7 +129,7 @@ func TestFilerWorkspaceFilesExtensionsErrorsOnDupName(t *testing.T) {
expectedError: "failed to read files from the workspace file system. Duplicate paths encountered. Both NOTEBOOK at /dir/foo and FILE at /dir/foo.ipynb resolve to the same name /foo.ipynb. Changing the name of one of these objects will resolve this issue", expectedError: "failed to read files from the workspace file system. Duplicate paths encountered. Both NOTEBOOK at /dir/foo and FILE at /dir/foo.ipynb resolve to the same name /foo.ipynb. Changing the name of one of these objects will resolve this issue",
}, },
{ {
name: "sql jupyter notebook and file", name: "sql jupyter notebook and file with .ipynb extension",
language: workspace.LanguageSql, language: workspace.LanguageSql,
notebookExportFormat: workspace.ExportFormatJupyter, notebookExportFormat: workspace.ExportFormatJupyter,
notebookPath: "/dir/foo", notebookPath: "/dir/foo",