Skip to content

Commit

Permalink
update test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
MOmarMiraj committed Oct 31, 2024
1 parent 40206a7 commit 7184b52
Show file tree
Hide file tree
Showing 45 changed files with 46 additions and 46 deletions.
2 changes: 2 additions & 0 deletions cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ fn main() -> anyhow::Result<()> {
args::AvailableLanguage::Typescript => SupportedLanguage::TypeScript,
#[cfg(feature = "go")]
args::AvailableLanguage::Go => SupportedLanguage::Go,
#[cfg(feature = "python")]
args::AvailableLanguage::Python => SupportedLanguage::Python,
},
};

Expand Down
2 changes: 1 addition & 1 deletion core/data/tests/anonymous_struct_with_rename/output.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Generated by typeshare 1.11.0
Generated by typeshare 1.12.0
"""
from __future__ import annotations

Expand Down
2 changes: 1 addition & 1 deletion core/data/tests/can_apply_prefix_correctly/output.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Generated by typeshare 1.11.0
Generated by typeshare 1.12.0
"""
from __future__ import annotations

Expand Down
2 changes: 1 addition & 1 deletion core/data/tests/can_generate_algebraic_enum/output.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Generated by typeshare 1.11.0
Generated by typeshare 1.12.0
"""
from __future__ import annotations

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Generated by typeshare 1.11.0
Generated by typeshare 1.12.0
"""
from __future__ import annotations

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Generated by typeshare 1.11.0
Generated by typeshare 1.12.0
"""
from __future__ import annotations

Expand Down
2 changes: 1 addition & 1 deletion core/data/tests/can_generate_bare_string_enum/output.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Generated by typeshare 1.11.0
Generated by typeshare 1.12.0
"""
from __future__ import annotations

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Generated by typeshare 1.11.0
Generated by typeshare 1.12.0
"""
from __future__ import annotations

Expand Down
2 changes: 1 addition & 1 deletion core/data/tests/can_generate_simple_enum/output.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Generated by typeshare 1.11.0
Generated by typeshare 1.12.0
"""
from __future__ import annotations

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Generated by typeshare 1.11.0
Generated by typeshare 1.12.0
"""
from __future__ import annotations

Expand Down
2 changes: 1 addition & 1 deletion core/data/tests/can_generate_slice_of_user_type/output.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Generated by typeshare 1.11.0
Generated by typeshare 1.12.0
"""
from __future__ import annotations

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Generated by typeshare 1.11.0
Generated by typeshare 1.12.0
"""
from __future__ import annotations

Expand Down
2 changes: 1 addition & 1 deletion core/data/tests/can_generate_unit_structs/output.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Generated by typeshare 1.11.0
Generated by typeshare 1.12.0
"""
from __future__ import annotations

Expand Down
2 changes: 1 addition & 1 deletion core/data/tests/can_handle_anonymous_struct/output.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Generated by typeshare 1.11.0
Generated by typeshare 1.12.0
"""
from __future__ import annotations

Expand Down
2 changes: 1 addition & 1 deletion core/data/tests/can_handle_quote_in_serde_rename/output.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Generated by typeshare 1.11.0
Generated by typeshare 1.12.0
"""
from __future__ import annotations

Expand Down
2 changes: 1 addition & 1 deletion core/data/tests/can_handle_serde_rename/output.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Generated by typeshare 1.11.0
Generated by typeshare 1.12.0
"""
from __future__ import annotations

Expand Down
2 changes: 1 addition & 1 deletion core/data/tests/can_handle_serde_rename_all/output.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Generated by typeshare 1.11.0
Generated by typeshare 1.12.0
"""
from __future__ import annotations

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Generated by typeshare 1.11.0
Generated by typeshare 1.12.0
"""
from __future__ import annotations

Expand Down
2 changes: 1 addition & 1 deletion core/data/tests/can_handle_unit_type/output.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Generated by typeshare 1.11.0
Generated by typeshare 1.12.0
"""
from __future__ import annotations

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Generated by typeshare 1.11.0
Generated by typeshare 1.12.0
"""
from __future__ import annotations

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Generated by typeshare 1.11.0
Generated by typeshare 1.12.0
"""
from __future__ import annotations

Expand Down
2 changes: 1 addition & 1 deletion core/data/tests/excluded_by_target_os/output.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Generated by typeshare 1.11.0
Generated by typeshare 1.12.0
"""
from __future__ import annotations

Expand Down
2 changes: 1 addition & 1 deletion core/data/tests/generate_types/output.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Generated by typeshare 1.11.0
Generated by typeshare 1.12.0
"""
from __future__ import annotations

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Generated by typeshare 1.11.0
Generated by typeshare 1.12.0
"""
from __future__ import annotations

Expand Down
2 changes: 1 addition & 1 deletion core/data/tests/kebab_case_rename/output.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Generated by typeshare 1.11.0
Generated by typeshare 1.12.0
"""
from __future__ import annotations

Expand Down
2 changes: 1 addition & 1 deletion core/data/tests/orders_types/output.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Generated by typeshare 1.11.0
Generated by typeshare 1.12.0
"""
from __future__ import annotations

Expand Down
2 changes: 1 addition & 1 deletion core/data/tests/recursive_enum_decorator/output.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Generated by typeshare 1.11.0
Generated by typeshare 1.12.0
"""
from __future__ import annotations

Expand Down
2 changes: 1 addition & 1 deletion core/data/tests/resolves_qualified_type/output.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Generated by typeshare 1.11.0
Generated by typeshare 1.12.0
"""
from __future__ import annotations

Expand Down
2 changes: 1 addition & 1 deletion core/data/tests/serialize_anonymous_field_as/output.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Generated by typeshare 1.11.0
Generated by typeshare 1.12.0
"""
from __future__ import annotations

Expand Down
2 changes: 1 addition & 1 deletion core/data/tests/serialize_field_as/output.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Generated by typeshare 1.11.0
Generated by typeshare 1.12.0
"""
from __future__ import annotations

Expand Down
2 changes: 1 addition & 1 deletion core/data/tests/serialize_type_alias/output.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Generated by typeshare 1.11.0
Generated by typeshare 1.12.0
"""
from __future__ import annotations

Expand Down
2 changes: 1 addition & 1 deletion core/data/tests/smart_pointers/output.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Generated by typeshare 1.11.0
Generated by typeshare 1.12.0
"""
from __future__ import annotations

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Generated by typeshare 1.11.0
Generated by typeshare 1.12.0
"""
from __future__ import annotations

Expand Down
2 changes: 1 addition & 1 deletion core/data/tests/test_generate_char/output.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Generated by typeshare 1.11.0
Generated by typeshare 1.12.0
"""
from __future__ import annotations

Expand Down
2 changes: 1 addition & 1 deletion core/data/tests/test_i54_u53_type/output.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Generated by typeshare 1.11.0
Generated by typeshare 1.12.0
"""
from __future__ import annotations

Expand Down
2 changes: 1 addition & 1 deletion core/data/tests/test_optional_type_alias/output.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Generated by typeshare 1.11.0
Generated by typeshare 1.12.0
"""
from __future__ import annotations

Expand Down
2 changes: 1 addition & 1 deletion core/data/tests/test_serde_default_struct/output.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Generated by typeshare 1.11.0
Generated by typeshare 1.12.0
"""
from __future__ import annotations

Expand Down
2 changes: 1 addition & 1 deletion core/data/tests/test_serde_url/output.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Generated by typeshare 1.11.0
Generated by typeshare 1.12.0
"""
from __future__ import annotations

Expand Down
2 changes: 1 addition & 1 deletion core/data/tests/test_serialized_as/output.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Generated by typeshare 1.11.0
Generated by typeshare 1.12.0
"""
from __future__ import annotations

Expand Down
2 changes: 1 addition & 1 deletion core/data/tests/test_serialized_as_tuple/output.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Generated by typeshare 1.11.0
Generated by typeshare 1.12.0
"""
from __future__ import annotations

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Generated by typeshare 1.11.0
Generated by typeshare 1.12.0
"""
from __future__ import annotations

Expand Down
2 changes: 1 addition & 1 deletion core/data/tests/test_type_alias/output.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Generated by typeshare 1.11.0
Generated by typeshare 1.12.0
"""
from __future__ import annotations

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Generated by typeshare 1.11.0
Generated by typeshare 1.12.0
"""
from __future__ import annotations

Expand Down
2 changes: 1 addition & 1 deletion core/data/tests/use_correct_integer_types/output.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Generated by typeshare 1.11.0
Generated by typeshare 1.12.0
"""
from __future__ import annotations

Expand Down
4 changes: 1 addition & 3 deletions core/src/language/python.rs
Original file line number Diff line number Diff line change
Expand Up @@ -783,9 +783,7 @@ fn handle_model_config(w: &mut dyn Write, python_module: &mut Python, rs: &RustS

#[cfg(test)]
mod test {
use syn::{parse_str, ItemEnum};

use crate::{parser::parse_enum, rust_types::Id};
use crate::rust_types::Id;

use super::*;
#[test]
Expand Down

0 comments on commit 7184b52

Please sign in to comment.