tswfi / epages_provisioning Goto Github PK
View Code? Open in Web Editor NEWPython library for calling ePages provisioning services
License: MIT License
Python library for calling ePages provisioning services
License: MIT License
The current release build and publish process is quite bad. Migrate to using better tools for release management.
I tried to create a shop with same name, but different case on the letters. With exact same name the shop creation fails with an error telling that shop already exists, and that's fine. But if I'm trying to create a shop with same name but different case on the letters, it fails on the init phase already and without error handling.
from epages_provisioning.provisioning import ShopConfigService
from epages_provisioning.shop import Shop
# Get the shop config service
sc = ShopConfigService(
server="http://jaana01.sml18.vilkas.pri",
provider="Distributor2",
username="admin",
password="admin"
)
# Create the first shop
# This wont create the shop yet
shop = Shop("Test", provisioning=sc)
# Shop type is mandatory
shop.ShopType = "MinDemo"
# Create the shop
shop.create()
# Access the shop attributes, and change them as required
shop.IsTrialShop = True
# Apply the changes to the server
shop.apply()
# Secondly, try to create exact same shop again
shop = Shop("Test", provisioning=sc)
shop.ShopType = "MinDemo"
# This line fails with the error Shop already exists
shop.create()
ShopExistsError: Shop already exists
# Thirdly, try to create same shop but a slightly different case
# This fails already here with a fault
shop = Shop("TeSt", provisioning=sc)
zeep.exceptions.Fault: Object /Providers/Distributor2/ShopRefs doesn't contain a child alias
Python2 is EOL and support can be removed.
Some code can be simplified and ci process can be streamlined.
The current testing uses a real ePages server to send the messages to and it will create shops on the system. As the shop creation is quite slow operation the tests are taking longer and longer to run.
The testing should be done with a mock request library.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.