Wykres commitów

32 Commity (master)

Autor SHA1 Wiadomość Data
Nick Moreton 33f02445ef
Initial testing fixes (#485)
* Test py 37,38,39 (#1) dj 22 wt 211,212,213

* Fixes the template include issue with the lock/unlock menu item

* Pin the upper bound of the supported Wagtail version to 2.13 and Django to 2.2

* Add some initial documentation for development setup
2023-07-07 15:00:12 +02:00
dependabot[bot] 32dcd50869
Bump django from 2.2.24 to 2.2.28 (#465)
Bumps [django](https://github.com/django/django) from 2.2.24 to 2.2.28.
- [Release notes](https://github.com/django/django/releases)
- [Commits](https://github.com/django/django/compare/2.2.24...2.2.28)

---
updated-dependencies:
- dependency-name: django
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-27 13:35:46 +02:00
dependabot[bot] 82f0de32a1
Bump djangorestframework from 3.10.3 to 3.11.2 (#371)
Bumps [djangorestframework](https://github.com/encode/django-rest-framework) from 3.10.3 to 3.11.2.
- [Release notes](https://github.com/encode/django-rest-framework/releases)
- [Commits](https://github.com/encode/django-rest-framework/compare/3.10.3...3.11.2)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: James Ramm <JamesRamm@users.noreply.github.com>
2021-10-25 14:30:26 +02:00
dependabot[bot] ce0346e3bf
Bump django from 2.2.5 to 2.2.24 (#390)
Bumps [django](https://github.com/django/django) from 2.2.5 to 2.2.24.
- [Release notes](https://github.com/django/django/releases)
- [Commits](https://github.com/django/django/compare/2.2.5...2.2.24)

---
updated-dependencies:
- dependency-name: django
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-25 14:29:23 +02:00
dependabot[bot] bd94337c47
Bump wagtail from 2.6.2 to 2.11.8 (#391)
Bumps [wagtail](https://github.com/wagtail/wagtail) from 2.6.2 to 2.11.8.
- [Release notes](https://github.com/wagtail/wagtail/releases)
- [Changelog](https://github.com/wagtail/wagtail/blob/main/CHANGELOG.txt)
- [Commits](https://github.com/wagtail/wagtail/compare/v2.6.2...v2.11.8)

---
updated-dependencies:
- dependency-name: wagtail
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: James Ramm <JamesRamm@users.noreply.github.com>
2021-10-25 14:28:37 +02:00
thenewguy 85e4cfed61 Issue 219 calculated rates base class (#230)
* add test for get_shipping_cost with a basket rate

* add fields to allow us to tie shipping rate to a basket & address

* add test for testing specified address and basket

* add migration for new shipping rate fields

* add missing import

* fix name errors

* add shipping possibilities based on shipping address and basket id

* test basket, shipping address, & basket+shipping address rate assignment

* return correct rates for basket and address rate cases

* rename shipping rate address for clarity (origin/destination)

* send basket modified signal when basket is modified via api endpoints

* test address only rate

* remove basket rates when the basket_modified signal is sent

* show response content on error

* print response content on failure for more tests and include more 200
statuses for put

* getting different status codes back from our endpoints, check success

* clear shipping rates based on destination address when address modified

* allow get params

* return cost and rate options for more cases (test not complete)

* fix mock

* return applicable shipping options and test some combinations

* stub the rate processor interface

* add fk from rate to processor that created it

* set rate basket and destination

* shipping processor instance can apply to more than one country

* run processor get_rates if configured

* let child models handle assignment

* add some initial testing for processor

* rename _get_rates() to process_rates()

* allow disabling the success check

* test country shipping option with processor requires destination

* test that the endpoint calls get_rate on the processor

* test that multiple processors are called once

* add shipping_origin fk to site settings

* add default cache key based on origin, destination, & basket items

* test a trivial rate processor implementation is used

* test cost endpoint returns the processed rate

* pin version requirement

* fix wagtail version

* start vagrant config

* get tox to run

* install nvm for vagrant user

* add instructions to move npm deps off shared folder for speed

* compact into a shell script for ease of use

* add some more examples as temporary documentation

* tests require dev reqs

* clean this up a little

* add migrations for productrequest app to fix test runner

* raise exception on error instead of returning error response

* test exception raised when country and country code specified

* test for destination address does not exist

* test exception when country and country code are not supplied

* set request.site as it is expected

* test get_shipping_cost_kwargs with only country code

* check the basket id and the settings

* value passed for country is supposed to be PK

* test with country specified

* write test so we can test with iso as string of known value

* tes destination is respected

* test with destination and country code

* test shipping_rate_name is set as name

* move models

* rename models.py

* rename to be consistent with rates being plural

* move serializers

* move models

* ignore private vagrant subdir

* move code around to fix circular imports to allow top level imports

* move address serializer import to top level

* ws

* ws
2019-11-06 13:46:07 +01:00
JamesRamm bbf17b1096 Fix deps 2019-10-06 16:41:03 +02:00
JamesRamm 2594246221 Fixes #256, Fixes #248 2019-09-22 12:33:34 +02:00
JamesRamm 4c59050350 Bump version: 1.0.0 → 1.0.1 2019-03-28 20:13:58 +01:00
JamesRamm 5b3ea482f2 Use twin for distribution 2019-02-03 10:53:53 +01:00
James Ramm 8ff51b9274
Longclaw 1.0 (#205)
* Compatibility with Wagtail 2 and Django 2
* Fixes #154 

Wagtail 2 compatibility:

* Fixes references to Wagtail packages which use the `wagtail.wagtail*` naming scheme. Wagtail 2 removes the redundancy.
* Wraps imports in `try`/`except` blocks to maintain compatibility with Wagtail 1.

Django 2 comaptibility:

Included because Wagtail 2 adds support for Django 2.

* Adds `on_delete` to all `ForeignKey` model fields, which is now required by Django 2.

* Updates for wagtail 2

* rename modules

* Longclaw v2: Rename and new migrations

* Longclaw 2: Reduce fails to 2 errors

* Longclaw v2: All tests passing

* Update travisconf

* Travis: Enable py37

* Update project template for v2

* longclawv2: update project template

* Fix migrations for longclaw 2

* Corrections in project template for longclaw1.0

* Correct location of templates and update docs

* Automatically load shipping countries

* Add loadcountries command

* Add info on loading country data
2018-12-26 12:58:05 +01:00
JamesRamm 5c224d8aff Fixes #96 and drops django 1.9 2018-03-23 22:08:34 +01:00
JamesRamm 6c239d7b9f Pin wagtail version to last 1.x release to get latest bugs for travis tests 2018-03-23 22:06:45 +01:00
JamesRamm b9747a3a9b Fixing errors from travis. #146 2018-03-23 21:50:38 +01:00
James Ramm 048e716db1 Product Requests (#95)
* Fixes #49
2017-10-10 19:49:56 +01:00
JamesRamm d790fecf1e Triple quotes on docstrings are pep257 2017-10-01 12:19:37 +02:00
JamesRamm 908f5906d6 Update wagtail reqs 2017-09-29 16:29:25 +02:00
James Ramm fd6cd2eab6 Reworking of Products (#86)
* Fixes #76 and fixes #47 by removing concrete product models from longclaw. Abstract classes are provided as a starting point and concrete models moved to the project template

* Products fully customisable (and therefore product index). Work on #76

* Removes concrete product models from longclaw, allowing customisation. For #76 and #47

* Product base testing

* Reorder imports for tests

* Drop py3.3

* Add back admin.py

* Update page panels

* Add tests to products
2017-09-17 14:01:12 +02:00
JamesRamm f74c134468 Fix braintree integration 2017-08-08 15:25:07 +01:00
James Ramm 3de6f48124 Checkout view (#68)
Fixes #50, #59, #60, #65
2017-05-24 11:12:36 +01:00
JamesRamm 929992f229 Fixes #57 and #58 2017-04-13 08:29:16 +01:00
JamesRamm dfc45a8746 Checkout tests. #37 2017-03-29 17:28:43 +01:00
JamesRamm fbe383558c Longclaw cli 2017-02-27 22:09:50 +00:00
JamesRamm 73d32872df Fixes #24 2017-02-27 21:43:31 +00:00
JamesRamm eb56078284 Add install requires & update to latest wagtail 2017-02-22 15:50:07 +00:00
JamesRamm 6ef470b01d Call npm from client dir 2017-02-10 18:43:22 +00:00
JamesRamm 48194bb63b docstreing 2017-02-10 09:19:42 +00:00
JamesRamm 857c47cc9f Add asset building to setup 2017-02-10 09:18:37 +00:00
JamesRamm fe4ac12cd5 Provides react based front end for order detail, with dummy actions for fulfill/refund 2017-02-10 08:26:21 +00:00
JamesRamm 7cae5a859d py2 compatibility 2017-02-07 09:23:23 +00:00
JamesRamm 9709300a70 Fix for #9 2017-02-06 08:34:23 +00:00
james ramm 27728c5eab First commit 2017-02-03 10:04:57 +00:00