Skip to content

Commit

Permalink
tests unified using Orm::Tiny:: ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
silverqx committed Jun 20, 2024
1 parent 88b4bfe commit d487c8c
Show file tree
Hide file tree
Showing 12 changed files with 37 additions and 33 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ using Orm::Exceptions::InvalidArgumentError;
using Orm::Exceptions::InvalidFormatError;
using Orm::SQLiteConnection;
using Orm::TTimeZone;

using Orm::Tiny::CastItem;
using Orm::Tiny::CastType;
using Orm::Utils::Helpers;

using TypeUtils = Orm::Utils::Type;

using Orm::Tiny::CastItem;
using Orm::Tiny::CastType;

using TestUtils::Databases;

using Models::Type;
Expand Down
9 changes: 5 additions & 4 deletions tests/auto/functional/orm/tiny/model/tst_model.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,6 @@ using Orm::Constants::UPDATED_AT;

using Orm::DB;
using Orm::TTimeZone;
using Orm::Tiny::ConnectionOverride;
using Orm::Tiny::Exceptions::ModelNotFoundError;
using Orm::Tiny::Model;
using Orm::Tiny::Types::ModelsCollection;
using Orm::Utils::Helpers;
using Orm::Utils::NullVariant;

Expand All @@ -41,6 +37,11 @@ using TQueryError;
using QueryUtils = Orm::Utils::Query;
using TypeUtils = Orm::Utils::Type;

using Orm::Tiny::ConnectionOverride;
using Orm::Tiny::Exceptions::ModelNotFoundError;
using Orm::Tiny::Model;
using Orm::Tiny::Types::ModelsCollection;

using TestUtils::Databases;

using Models::Role;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ using Orm::DB;
using Orm::QtTimeZoneConfig;
using Orm::QtTimeZoneType;
using Orm::TTimeZone;
using Orm::Utils::NullVariant;

using Orm::Tiny::ConnectionOverride;
using Orm::Utils::Helpers;
using Orm::Utils::NullVariant;

using TypeUtils = Orm::Utils::Type;

using Orm::Tiny::ConnectionOverride;

using TestUtils::Databases;

using Models::Datetime;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,17 @@ using Orm::One;
using Orm::QtTimeZoneConfig;
using Orm::QtTimeZoneType;
using Orm::TTimeZone;
using Orm::Utils::Helpers;

using QueryUtils = Orm::Utils::Query;
using TypeUtils = Orm::Utils::Type;

using Orm::Tiny::AttributeItem;
using Orm::Tiny::ConnectionOverride;
using Orm::Tiny::Exceptions::RelationMappingNotFoundError;
using Orm::Tiny::Exceptions::RelationNotLoadedError;
using Orm::Tiny::Relations::Pivot;
using Orm::Tiny::Types::ModelsCollection;
using Orm::Utils::Helpers;

using QueryUtils = Orm::Utils::Query;
using TypeUtils = Orm::Utils::Type;

using TestUtils::Databases;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ using Orm::Constants::UPDATED_AT;

using Orm::One;

using TypeUtils = Orm::Utils::Type;

using Orm::Tiny::ConnectionOverride;
using Orm::Tiny::Relations::Pivot;
using Orm::Tiny::Types::ModelsCollection;

using TypeUtils = Orm::Utils::Type;

using TestUtils::Databases;

using Models::Tag;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ using Orm::Constants::Progress;

using Orm::QueryBuilder;

using TypeUtils = Orm::Utils::Type;

using Orm::Tiny::ConnectionOverride;
using Orm::Tiny::Relations::Relation;
using Orm::Tiny::TinyBuilder;

using TypeUtils = Orm::Utils::Type;

using TestUtils::Databases;

using Models::FilePropertyProperty;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ using Orm::Constants::dummy_NONEXISTENT;

using Orm::One;

using TypeUtils = Orm::Utils::Type;

using Orm::Tiny::ConnectionOverride;
using Orm::Tiny::Types::ModelsCollection;

using TypeUtils = Orm::Utils::Type;

using TestUtils::Databases;

using Models::FilePropertyProperty;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@ using Orm::Constants::SIZE_;
using Orm::Constants::UPDATED_AT;

using Orm::One;
using Orm::Tiny::ConnectionOverride;
using Orm::Tiny::Types::ModelsCollection;

using TypeUtils = Orm::Utils::Type;

using Orm::Tiny::ConnectionOverride;
using Orm::Tiny::Types::ModelsCollection;

using TestUtils::Databases;

using Common = TestUtils::Common::Collection;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ using Orm::Constants::Updated_;

using Orm::One;

using Orm::Tiny::AttributeItem;
using Orm::Tiny::ConnectionOverride;
using Orm::Tiny::Types::ModelsCollection;

using TQueryError;

using TypeUtils = Orm::Utils::Type;

using Orm::Tiny::AttributeItem;
using Orm::Tiny::ConnectionOverride;
using Orm::Tiny::Types::ModelsCollection;

using TestUtils::Databases;

using Models::Tag;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ using Orm::Constants::NAME;
using Orm::Constants::NOTE;
using Orm::Constants::UPDATED_AT;

using Orm::Tiny::ConnectionOverride;

using TypeUtils = Orm::Utils::Type;

using Orm::Tiny::ConnectionOverride;

using TestUtils::Databases;

using Models::Setting;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,15 @@ using Orm::Constants::SIZE_;

using Orm::TTimeZone;

using TQueryError;

using TypeUtils = Orm::Utils::Type;

using Orm::Tiny::ConnectionOverride;
using Orm::Tiny::Exceptions::ModelNotFoundError;

using TQueryError;

template<typename Model>
using TinyBuilder = Orm::Tiny::Builder<Model>;
using TypeUtils = Orm::Utils::Type;

using TestUtils::Databases;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,15 @@ using Orm::Constants::SIZE_;
using Orm::DB;
using Orm::Exceptions::InvalidArgumentError;
using Orm::QueryBuilder;
using Orm::Tiny::Model;
using Orm::Tiny::TinyBuilder;
using Orm::TTimeZone;
using Orm::Utils::Helpers;
using Orm::Utils::NullVariant;

using TypeUtils = Orm::Utils::Type;

using Orm::Tiny::Model;
using Orm::Tiny::TinyBuilder;

using TestUtils::Databases;

using Models::FilePropertyProperty;
Expand Down

0 comments on commit d487c8c

Please sign in to comment.